-
Notifications
You must be signed in to change notification settings - Fork 105
bower install does not install src folder and causes source map errors #42
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
Hi, it should only contain the Have you tried starting Chrome with a clean profile? (replace
If this fixes the error message, you might have a corrupt workspace mapping in chrome. Clearing the profile directory should do the trick. |
Hmm, I have javascript source maps enabled in my devtools settings. When I start with a new profile, I think, this is not enabled, am I right? Therefore I wouldn't see those error messages. |
The current version of Chrome has source map support turned on by default. The sourcemap of the minified version points to the un-minified angular-block-ui.js, which is an actual file and thus accessible directly by Chrome. If you're uglifying the source yourself, you'll either have to remove the sourcemap comment (most uglifyers have an option for this) or rebuild the sourcemap with something like gulp-sourcemaps. |
Thank you for your hints. |
bower install angular-block-ui installs only the dist directory. Running the app with the uncompressed files in chrome brings up errors like this:
Failed to locate workspace file mapped to URL http://localhost/bower_components/angular-block-ui/src/angular-block-ui/angular-block-ui-header.js from source map http://localhost/bower_components/angular-block-ui/dist/angular-block-ui.js.map
The text was updated successfully, but these errors were encountered: