-
Notifications
You must be signed in to change notification settings - Fork 59
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
Modulus fails when project uses meteor-webpack package #224
Comments
@vladejs do you have any source code that we can test this out with? Also, what changes were made to the project to create this error? If you revert those changes, do you still get the same output? |
@theworkflow, Any empty meteor project who uses meteor-webpack package has this error. You can try with any of thereactivestack starter projects. The package who causes trouble is here. To reproduce the error you can try:
|
@vladejs Since @theworkflow is on vacation this week, I'm trying to jump in an help. Attempting to reproduce your project I get this:
|
Hello @jackboberg, the package is
This is the whole output from modulus:
|
@vladejs Still attempting to reproduce your instructions locally, before attempting to deploy to Modulus:
And then:
Are you not getting that locally? If you would rather, you can open a support ticket and provide access to your source. [email protected] |
Did you at least read the error? Pretty obvious to me:
That's a prerequisite to work with Anyway, I am wondering why you are trying to reproduce the error by creating a project yourself?. In my comment above there is a link with tons of kickstarter project that uses
Troubles are when uploading to modulus, so, take a kickstarter and try to deploy it there. |
I am trying to follow your example exactly so that I know if I get my app to work I can confidently tell you how I resolved it. Following along, after
Of course the next step is obvious, but again, I'm trying to duplicate your exact issue. Since you now think following your example script is a waste of time, I will stop.. Grabbing a sample project from thereactivestack/kickstart now.. |
Yes, create a webpack project from scratch involves generating some files I recommended using a kickstart project because the problem is common for Also notice that locally no errors are thrown.
|
@vladejs reproduced the issue with kickstart-meteor-react-flowrouter. I'll update if/when I find any resolutions.. |
It would be awesome to find a solution to this error, since we are migrating several meteor projects to use webpack and don't want to switch to galaxy yet. |
@jackboberg , @theworkflow , please see #235 |
Hello, I have several projects hosted on modulus. All I do is bundle my projects in a .zip and upload them to the platform. Modulus does the rest ( realize which meteor version to use, which packages to install etc ).
With a project that uses webpack, modulus fails with this output:
Starting build.
Creating directories for build environment.
Downloading source.
Executing build.
Now using node v4.4.7 (npm v3.10.5)
Initializing Meteor environment.
Using [email protected].
Demeteorizing application...
TypeError: undefined is not a function
at config (eval at readPackageConfig (packages/webpack:webpack/plugin/WebpackCompiler.js:304:28), :57:18)
at packages/webpack:webpack/plugin/WebpackCompiler.js:325:26
at Array.forEach (native)
at Object.load (packages/webpack:webpack/plugin/WebpackCompiler.js:323:15)
at WebpackCompiler.processFilesForTarget (packages/webpack:webpack/plugin/WebpackCompiler.js:131:13)
at bottom_mark (/tools/utils/parse-stack.js:64:14)
at /tools/isobuild/compiler-plugin.js:188:13
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at /tools/isobuild/compiler-plugin.js:177:22
at Function.time (/tools/tool-env/profile.js:305:10)
at /tools/isobuild/compiler-plugin.js:176:15
at Function..each..forEach (/mnt/home/.meteor/packages/meteor-tool/.1.3.3_1.wzhjxc++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
at CompilerPluginProcessor.runCompilerPlugins (/tools/isobuild/compiler-plugin.js:166:7)
at ClientTarget.runCompilerPlugins (/tools/isobuild/bundler.js:913:22)
at /tools/isobuild/bundler.js:693:34
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at ClientTarget.make (/tools/isobuild/bundler.js:687:18)
at /tools/isobuild/bundler.js:2533:14
at /tools/isobuild/bundler.js:2622:20
at Array.forEach (native)
at Function..each..forEach (/mnt/home/.meteor/packages/meteor-tool/.1.3.3_1.wzhjxc++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at /tools/isobuild/bundler.js:2621:7
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.exports.bundle (/tools/isobuild/bundler.js:2514:31)
at buildCommand (/tools/cli/commands.js:896:30)
at Command.main.registerCommand..extend.name as func
at /tools/cli/main.js:1402:23
Errors prevented bundling:
While processing files with webpack:webpack (for target web.browser):
error: Can't load npm module
'/mnt/input/node_modules/extract-text-webpack-plugin' from
packages/webpack_npmworkaround.js. Check your Npm.depends().
src/index.js: Entry module not found: Error: Cannot resolve module 'babel' in
/mnt/input
resolve module babel in /mnt/input
While processing files with fourseven:scss (for target web.browser):
/src/client/styles/bootstrap-custom.scss: Scss compiler error: File to import:
{}/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables not found
in file: /mnt/input/{}/src/client/styles/bootstrap-custom.scss
While processing files with webpack:webpack (for target os.linux.x86_64):
src/main.js: Entry module not found: Error: Cannot resolve module 'babel' in
/mnt/input
resolve module babel in /mnt/input
Conversion failed.
Build attempt failed, attempting again.
Starting build.
Creating directories for build environment.
Downloading source.
Executing build.
Now using node v4.4.7 (npm v3.10.5)
Initializing Meteor environment.
Using [email protected].
Demeteorizing application...
Log Stream Disconnected
Does someone know a workaround to fix this?
The text was updated successfully, but these errors were encountered: