SyntaxError in constants/lib.js
See original GitHub issueHi!
I am trying to include this service into an Ionic 2 RC.0 app and when bundleing the app this error occurs:
[14:25:17] bundle dev started ...
[14:25:22] SyntaxError: Unexpected token (9:6) in C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\ng2-webstorage\dist\constants\lib.js
at Parser.pp$4.raise (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:4072:13)
at Parser.pp.unexpected (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:2270:8)
at Parser.pp.semicolon (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:2247:59)
at Parser.pp$1.parseVarStatement (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:2614:8)
at Parser.pp$1.parseStatement (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:2398:17)
at Parser.pp$1.parseTopLevel (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:2315:23)
at Parser.parse (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:2182:15)
at parse (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:4972:37)
at tryParse (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:7312:10)
at new Module (C:\Daten\Entwicklung\e-netz\PROMT-UI_V2\node_modules\rollup\dist\rollup.js:7346:20)
I am working on Windows 10. Looking at that file in an editor does not seem to show any cause of this. Do you have an idea how to overcome this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
SyntaxError - JavaScript - MDN Web Docs
The SyntaxError object represents an error when trying to interpret syntactically invalid code. It is thrown when the JavaScript engine encounters tokens or ......
Read more >How to Handle the Syntax Error in Javascript - Rollbar
The Javascript SyntaxError is thrown when the engine comes across tokens or token orders with incorrect syntax when parsing code.
Read more >Find details of SyntaxError thrown by javascript new Function ...
When creating new function from JavaScript code using new Function(params,body) constructor, passing invalid string in body yelds SyntaxError.
Read more >SyntaxError - JavaScript: The Definitive Guide, 6th Edition [Book]
An instance of the SyntaxError class is thrown to signal a syntax error in JavaScript code. The eval() method, the Function() constructor, and...
Read more >Uncaught SyntaxError: Unexpected end of input in utag.js
Hi All, We see "Uncaught SyntaxError: Unexpected end of input" error under utag.js file for one of our Tealium configuration. It's totally.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey, the v1.3.0 is now available and should fix this issue.
No that mean that this lib seems to not work with the ionic 2 rc. Ng2Webstorage is currently compliant with the angular release specs but if you need a rc compliant you just have to downgrade the package version.