-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build -prod The Broccoli Plugin: [BundlePlugin] failed with: #1024
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
Comments
+1.... really frustating I have to say. I know i'm not contributing to this repo, I know I'm not suppose to whine and bitch about stuff not working, but i'm expecting some form of quality from this project. It's in beta and not working at all for me and this is the second chance I'm giving it. Again, sorry I'm not raging or anything, i just have high hopes for this project. Thanks for the efforts though. |
I have a temporary fix for that (will be submitted once, the bundler deployed a new release) I also discussed with @hansl about that ( but probably he will think about it again ). I recently made a change to the SystemJS builder, which allows developers to disable the sourcemap tracing. The PR for the CLI, will allow developers to overwrite the SystemJS builder options (quite useful IMO) {
bundleOptions: {
sourceMaps: false
}
} Waiting for a new release of the SystemJS builder, which includes this option for recursive imports as well. |
Thanks @devversion |
Same problem here, a temporary workaround would be nice to have... |
Fixed the problem by following this comment: #847 (comment) However the production build tries to load the single js files for each component by they aren't in the dist build |
The fix for the source maps problem occurs when upgrading projects to beta.5 from previous versions. Starting a new project will not have this issue. We're still working on adding changelogs so that these breaking changes are documented. The upgrade procedure which fixes this issue is the one @demetrio812 linked to: #847 (comment) |
@demetrio812 That sounds like a different issue. Are you adding script tags to |
@filipesilva the problem is that if I do As a temporary workaround I ended up copying the content of Let me know your thoughts, I can open a different issue if you want. |
@demetrio812 the reason Changing the If you haven't added script tags and still get 404 on needed files, please do open a new issue with repro steps and I will look at it. |
Hello @filipesilva I'll look into it and will open a new issue with a description to reproduce it, cheers! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
(node:35374) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.5
node: 6.2.1
os: darwin x64
Prafulls-MacBook-Pro:prafsoni.github.io PKS$ ng build -prod
(node:35467) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
⠹ Building"{{content-for}}" has been deprecated and will be removed before RC.
⠸ Building(node:35467) DeprecationWarning: 'root' is deprecated, use 'global'
(node:35467) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
Build failed.
The Broccoli Plugin: [BundlePlugin] failed with:
Error on fetch for main.js at file:///Users/PKS/Desktop/websites/prafsoni.github.io/tmp/bundle_plugin-input_base_path-iblGMnnC.tmp/0/main.js
Error: ENOENT: no such file or directory, open '/Users/PKS/Desktop/websites/prafsoni.github.io/tmp/bundle_plugin-input_base_path-iblGMnnC.tmp/0/Users/PKS/Desktop/websites/prafsoni.github.io/tmp/broccoli_type_script_compiler-input_base_path-F2xbwtcg.tmp/0/main.js.map'
at Error (native)
The broccoli plugin was instantiated at:
at BundlePlugin.Plugin (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/broccoli-plugin/index.js:10:31)
at BundlePlugin.CachingWriter as constructor
at BundlePlugin (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/broccoli/angular-broccoli-bundle.js:11:5)
at Angular2App._getBundleTree (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/broccoli/angular2-app.js:421:22)
at Angular2App._buildTree (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/broccoli/angular2-app.js:159:21)
at new Angular2App (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/broccoli/angular2-app.js:53:23)
at module.exports (/Users/PKS/Desktop/websites/prafsoni.github.io/angular-cli-build.js:6:10)
at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/models/builder.js:55:19)
at Class.module.exports.Task.extend.init (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/models/builder.js:89:10)
at new Class (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/core-object/core-object.js:18:12)
at Class.module.exports.Task.extend.run (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/tasks/build.js:15:19)
at /Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/angular-cli/lib/commands/build.js:32:24
at lib$rsvp$$internal$$tryCatch (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/rsvp/dist/rsvp.js:1048:17)
at /Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/rsvp/dist/rsvp.js:331:11
at lib$rsvp$asap$$flush (/Users/PKS/Desktop/websites/prafsoni.github.io/node_modules/rsvp/dist/rsvp.js:1198:9)
The text was updated successfully, but these errors were encountered: