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

ember-source #16827

Closed
poplevente opened this issue Jul 18, 2018 · 11 comments
Closed

ember-source #16827

poplevente opened this issue Jul 18, 2018 · 11 comments

Comments

@poplevente
Copy link

poplevente commented Jul 18, 2018

Hi Guys,

after updating ember-source from 3.2.2 to 3.3.0, i get the following errors:

Warning: ignoring input sourcemap for vendor/ember/ember.debug.js because ENOENT: no such file or directory
Warning: ignoring input sourcemap for vendor/ember/ember-testing.js because ENOENT: no such file or directory

anyone else having this? if i go back to 3.2.2 the warning is gone.

@rwjblue
Copy link
Member

rwjblue commented Jul 18, 2018

I haven't seen this issue yet, can you provide a demo reproduction?

@poplevente
Copy link
Author

I just hit npm install. i had to update another package and saw this after a full npm install. when i go back to 3.2.2 ember source, the error is gone.

@HerveSeger
Copy link

I have exactly the same problem with a regular ember serve after upgrading from 3.0.0 to 3.3.1:

Warning: ignoring input sourcemap for vendor/ember/ember.debug.js because ENOENT: no such file or directory, open 'c:\projects\git\insurance-online-ui\tmp\source_map_concat-input_base_path-XDYu3Wbd.tmp\vendor\ember\index.js.map'
Warning: ignoring input sourcemap for vendor/ember/ember-testing.js because ENOENT: no such file or directory, open 'c:\projects\git\insurance-online-ui\tmp\source_map_concat-input_base_path-DRNeZdj4.tmp\vendor\ember\testing.js.map'

I am on Windows 7.

@pixelhandler
Copy link
Contributor

@poplevente @HerveSeger were you able to resolve this issue? Does clearing the node_modules directory help?

@poplevente
Copy link
Author

@pixelhandler this is solved in the last version as far as i see, so the issue was known.

@buschtoens
Copy link
Contributor

Maybe this is related to / a dupe of #16881, seeing that downgrading to 3.2.2 fixes the issue?

@poplevente
Copy link
Author

could be. downgrading also worked, but as i see the last version is also fine.

@HerveSeger
Copy link

Hi.

@pixelhandler
The warnings are gone. I just checked today.

I had to run yarn a few times in the past weeks so maybe a dependency has been upgraded?
I do not know when (or why) the warnings have disappeared but the fact is that they are gone.

@kmoe
Copy link

kmoe commented Sep 7, 2018

This is still an issue in 3.4.0. To see why, download [email protected] and look at dist/ember.prod.js. This file has multiple declarations of the form

//# sourceMappingURL=...

which is invalid. Please see #16881 for details of why this breaks the sourcemap build.

@kmoe
Copy link

kmoe commented Sep 7, 2018

@rwjblue The repro case is in #16844 (closed), but here is a copy:

Steps to reproduce

  1. Create a new ember project
$ ember new abc --skip-git
$ cd abc
  1. Install the latest version of ember-source
$ npm i --save-dev [email protected]
  1. Add sourcemaps to the build
$ sed -i '/\/\/ Add options here/a sourcemaps:{enabled:true}' ember-cli-build.js
  1. Build for production
$ npm run build -- --environment=production

Results

> ember build "--environment=production"

⠧ Building[WARN] (broccoli-uglify-sourcemap) "index.js.map" referenced in "assets/vendor.js" could not be found
cleaning up...
Built project successfully. Stored in "dist/".
File sizes:
 - dist/assets/abc-94dbdc62c3439ef82228bb04ee7cce04.js: 4.34 KB (1.36 KB gzipped)
 - dist/assets/abc-d41d8cd98f00b204e9800998ecf8427e.css: 0 B
 - dist/assets/vendor-864f4cfe6a0b732a7ba7c5e02bfbb420.js: 732.86 KB (192.92 KB gzipped)
 - dist/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css: 0 B

Note the error message indicating that the assets/vendor.js sourcemap could not be built.

@rwjblue
Copy link
Member

rwjblue commented Sep 11, 2018

Closing in favor of #16881

@rwjblue rwjblue closed this as completed Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants