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.

"unterminated string constant" when generating production bundle

See original GitHub issue

Description

I’ve just upgraded from 0.39 to 0.42.3 and things seem to be working well, but I can’t do a non-dev build.

$ /usr/local/bin/node ./node_modules/.bin/react-native bundle --entry-file index.ios.js --bundle-output iOS/main.jsbundle --dev false --platform ios --verbose  --reset-cache
Scanning 730 folders for symlinks in /Users/udi/app/node_modules (7ms)
Scanning 730 folders for symlinks in /Users/udi/app/node_modules (7ms)
Loading dependency graph, done.
warning: the transform cache was reset.

Unterminated string constant

Changing --dev true works however.

/usr/local/bin/node ./node_modules/.bin/react-native bundle --entry-file index.ios.js --bundle-output iOS/main.jsbundle --dev true --platform ios --reset-cache
Scanning 730 folders for symlinks in /Users/udi/app/node_modules (6ms)
Scanning 730 folders for symlinks in /Users/udi/app/node_modules (7ms)
Loading dependency graph, done.
warning: the transform cache was reset.
bundle: start
bundle: finish
bundle: Writing bundle output to: iOS/main.jsbundle
bundle: Done writing bundle output
Assets destination folder is not set, skipping...

Reproduction Steps and Sample Code

Unfortunately this error is so vague that I’m not sure where to begin with reproducibility other than to upload my entire codebase, which unfortunately isn’t possible.

Does anyone have suggestions for how I could better debug this issue? --verbose doesn’t seem to do anything. Thanks!

Additional Information

  • React Native version: “react”: “~15.4.0”, “react-native”: “^0.42.3”,
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: Xcode and command line

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
airman00commented, Jun 16, 2017

@udfalkso any luck or updates with this?

I’m experiencing the same issue and lost with what to try next

0reactions
veris-amoghbantacommented, Jun 28, 2017

any solutions on on this one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: unterminated string literal - JavaScript | MDN
The JavaScript error "unterminated string literal" occurs when there is an unterminated string literal somewhere. String literals must be enclosed by single ( ......
Read more >
What is the meaning of “unterminated string or character ...
An unterminated string constant is the string infinity that has no garbage collection of the do and while loop …
Read more >
SyntaxError: unterminated string literal in Saving Credit Memo
Wondering why this message "SyntaxError: unterminated string literal " pops up, whenever we have brackets or spaces in the inventory item:
Read more >
JavaScript SyntaxError: Unterminated string literal
This JavaScript error unterminated string literal occurs if there is string which is not terminated properly. String literals must be enclosed ...
Read more >
Unterminated string constant error on valid code? - Stack ...
The code itself passes JSlint with a few comments about spacing. Javascriptlint.com generates a warning about "script tag must be empty if a ......
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