babel-note | Some examples of babel
kandi X-RAY | babel-note Summary
kandi X-RAY | babel-note Summary
Some examples of babel
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of babel-note
babel-note Key Features
babel-note Examples and Code Snippets
Community Discussions
Trending Discussions on babel-note
QUESTION
Problem:
1. the ember build process completes with warnings and culminates with a corrupt output file that throws a Uncaught SyntaxError: Invalid or unexpected token
on the chromium client, which prevents the app to load.
Symptoms:
1. "After bower install bootstrap --save
and necessary app.import(...)
commands, the ember build process threw a couple of warnings [BABEL]: the code generator has deoptimised the styling of bower_components/bootsrap/....../jquery.js as it exceeds the max of 100KB
, followed with a 129 JSHint errors.
first few lines of JSHint Errors:
bower_components/bootstrap/Gruntfile.js: line 8, col 1, 'module' is not defined.
bower_components/bootstrap/Gruntfile.js: line 18, col 12, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 19, col 14, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 20, col 32, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 21, col 25, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 28, col 26, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 29, col 32, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 434, col 3, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 435, col 3, 'require' is not defined.
bower_components/bootstrap/Gruntfile.js: line 23, col 30, '__dirname' is not defined.
bower_components/bootstrap/Gruntfile.js: line 395, col 18, 'process' is not defined.
bower_components/bootstrap/Gruntfile.js: line 441, col 13, 'process' is not defined.
bower_components/bootstrap/Gruntfile.js: line 441, col 38, 'process' is not defined.
bower_components/bootstrap/Gruntfile.js: line 452, col 7, 'process' is not defined.
bower_components/bootstrap/Gruntfile.js: line 458, col 24, 'process' is not defined.
bower_components/bootstrap/Gruntfile.js: line 462, col 14, 'process' is not defined.
bower_components/bootstrap/Gruntfile.js: line 466, col 24, 'process' is not defined
17 errors
bower_components/bootstrap/dist/js/bootstrap.js: line 8, col 61, Missing semicolon.
bower_components/bootstrap/dist/js/bootstrap.js: line 13, col 53, Missing semicolon.
bower_components/bootstrap/dist/js/bootstrap.js: line 14, col 59, Expected '===' and instead saw '=='.
bower_components/bootstrap/dist/js/bootstrap.js: line 14, col 78, Expected '===' and instead saw '=='.
bower_components/bootstrap/dist/js/bootstrap.js: line 15, col 113, Missing semicolon.
bower_components/bootstrap/dist/js/bootstrap.js: line 17, col 9, Expected an assignment or function call and instead saw an expression.
bower_components/bootstrap/dist/js/bootstrap.js: line 35, col 49, Missing semicolon.
bower_components/bootstrap/dist/js/bootstrap.js: line 42, col 6, Missing semicolon.
and similar errors pointing to files in the 'bootstrap' folder (which does not exist) and the 'jquery' folder in bower_components
reverting back to configuration without bootstrap did not resolve the issue, the build process throws the same errors even though no 'bootstrap' folder exists in the "bower_components" folder
ember-cli-build.js
``
...ANSWER
Answered 2017-Apr-06 at 09:37You are running into the issue because you are doing an import from Bower. If you use this Ember addon it should handle some of the complexities of importing for you: https://github.com/ef4/ember-sass-bootstrap
ef4 is on the Ember core team, so you can generally trust his addons.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install babel-note
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page