Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR - Dependency COMMONJS #414

Closed
pdwinkel opened this issue Oct 26, 2014 · 6 comments
Closed

ERROR - Dependency COMMONJS #414

pdwinkel opened this issue Oct 26, 2014 · 6 comments

Comments

@pdwinkel
Copy link

Just updated to version 2.3.18, and now I'm getting lots of error messages:

21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-routes.js, cannot be found.
21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-routes.js, cannot be found.
21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-routes.js, cannot be found.
21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-routes.js, cannot be found.
21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-routes.js, cannot be found.
21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-routes.js, cannot be found.
21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-routes.js, cannot be found.

I'm not using COMMONJS, but requireJS.

@dbashford
Copy link
Owner

Could you post some of what that file looks like?

Or the whole file if you are good with that.

@pdwinkel
Copy link
Author

Well, data-routes.js in about 300 lines.
But I'm getting this error for more source files, like

21:45:33 - ERROR - Dependency COMMONJS, inside file build/tmp/webapp/javascript/app/data/data-module.js, cannot be found.

Here is the source of data-module.js:

define(function(require) {
   'use strict';

   var angular = require("angular");
   var module = angular.module("app.data", []);

   module.service('dataService', require('./data-service'));

   module.controller("addDataEntryModalController", require("./add-data-entry-modal-controller"));

   module.config(require("./data-routes"));

   return module;
});

@dbashford
Copy link
Owner

Thx, will dig in.

@dbashford
Copy link
Owner

Give it another go? Should be cleared up.

Pushed fix with 2.3.19

@pdwinkel
Copy link
Author

LGTM ;-)

Thx

@pdwinkel
Copy link
Author

BTW: the --version option is not mentioned in the 'mimosa -h' output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants