1

Windowsからubuntuに移行しようとしています。Windowsでfindを実行するemberアプリがありますが、ubuntuで同じプロジェクトがスローされますerror Uncaught Error: Could not find module simple-auth-devise/configuration

私が従った手順

  1. gitクローン
  2. npm install && bower install
  3. エンバーサーブ

未亡人の app\node_modules\ember-cli-simple-auth-devise\app\initializers で

import initializer from 'simple-auth-devise/initializer';
export default initializer;

Ubuntuで

import Configuration from 'simple-auth-devise/configuration';
import Authenticator from 'simple-auth-devise/authenticators/devise';
import Authorizer from 'simple-auth-devise/authorizers/devise';
import ENV from '../config/environment';

export default {
  name:       'simple-auth-devise',
  before:     'simple-auth',
  initialize: function(container, application) {
    Configuration.load(container, ENV['simple-auth-devise'] || {});
    container.register('simple-auth-authorizer:devise', Authorizer);
    container.register('simple-auth-authenticator:devise', Authenticator);
  }
};

index.html

<script>
      window.EventorENV = {{ENV}};
      window.EmberENV = window.EventorENV.EmberENV;
      window.ENV = window.ENV || {};
      window.ENV['simple-auth'] = {
        authorizer: 'simple-auth-authorizer:devise'
      }
    </script>
    <script src="assets/vendor.js"></script>
    <script src="assets/eventor.js"></script>
    <script>
      window.Eventor = require('eventor/app')['default'].create(EventorENV.APP);
    </script>
4

0 に答える 0