"unterminated string constant" when generating production bundle
See original GitHub issueDescription
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:
- Created 6 years ago
- Comments:6
Top 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 >
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 Free
Top 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

@udfalkso any luck or updates with this?
I’m experiencing the same issue and lost with what to try next
any solutions on on this one?