You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As simpler solution to git submodules, I am sharing code with this app using a symlinked folder. The app runs perfectly in dev mode. But when I try to build it UglifyJs breaks with the following error (obscured):
Failed to compile.
static/js/main.95ce5432.js from UglifyJs
Unexpected token name «extends», expected punc «)» [../other-project/src/folder/file.js:3,0][static/js/main.95ce5432.js:551,63]
The app is built and works but main.x.js is not obfuscated/compressed.
The generated main.x.js still uses in fact the syntax class extends which I assume would only work in certain browsers and needs to be converted?
Even if I try to uglify manually main.x.js via terminal I get the same error.
Any idea how I could debug/fix this? Thanks a lot!
The text was updated successfully, but these errors were encountered:
my understanding is that in create-react-app is not possible to use symlinks to reference ES6 classes outside the src folder and that this use case won't be supported in the foreseeable future.
my understanding is that in create-react-app is not possible to use symlinks to reference ES6 classes outside the src folder and that this use case won't be supported in the foreseeable future.
As simpler solution to git submodules, I am sharing code with this app using a symlinked folder. The app runs perfectly in dev mode. But when I try to build it UglifyJs breaks with the following error (obscured):
The app is built and works but main.x.js is not obfuscated/compressed.
The generated main.x.js still uses in fact the syntax
class extends
which I assume would only work in certain browsers and needs to be converted?Even if I try to uglify manually main.x.js via terminal I get the same error.
Any idea how I could debug/fix this? Thanks a lot!
The text was updated successfully, but these errors were encountered: