question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SyntaxError in constants/lib.js

See original GitHub issue

Hi!

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:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
PillowPillowcommented, Oct 6, 2016

hey, the v1.3.0 is now available and should fix this issue.

1reaction
PillowPillowcommented, Oct 6, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found