Skip to content

1.85.0 experimental syntax error #9801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RobHills-Airborne opened this issue Sep 9, 2021 · 2 comments
Closed

1.85.0 experimental syntax error #9801

RobHills-Airborne opened this issue Sep 9, 2021 · 2 comments

Comments

@RobHills-Airborne
Copy link

RobHills-Airborne commented Sep 9, 2021

Seeing the following error with 1.85. I do not see this issue with 1.84. Add @babel/plugin-syntax-import-meta to my packages.json babel{} plugins config makes no difference!

`....node_modules\cesium\Source\ThirdParty\zip.js: Support for the experimental syntax 'importMeta' isn't currently enabled (1565:73):

�[0m �[90m 1563 | �[39m �[36mif�[39m (�[33m!�[39mworkerData�[33m.�[39minterface) {�[0m
�[0m �[90m 1564 | �[39m �[36mtry�[39m {�[0m
�[0m�[31m�[1m>�[22m�[39m�[90m 1565 | �[39m workerData�[33m.�[39mworker �[33m=�[39m �[36mnew�[39m �[33mWorker�[39m(�[36mnew�[39m �[33mURL�[39m(workerData�[33m.�[39mscripts[�[35m0�[39m]�[33m,�[39m �[36mimport�[39m�[33m.�[39mmeta�[33m.�[39murl))�[33m;�[39m�[0m
�[0m �[90m | �[39m �[31m�[1m^�[22m�[39m�[0m
�[0m �[90m 1566 | �[39m } �[36mcatch�[39m (error) {�[0m
�[0m �[90m 1567 | �[39m workerData�[33m.�[39mworker �[33m=�[39m �[36mnew�[39m �[33mWorker�[39m(�[36mnew�[39m �[33mURL�[39m(workerData�[33m.�[39mscripts[�[35m0�[39m]�[33m,�[39m �[36mimport�[39m�[33m.�[39mmeta�[33m.�[39murl)�[33m,�[39m { type�[33m:�[39m �[32m"module"�[39m })�[33m;�[39m�[0m
�[0m �[90m 1568 | �[39m }�[0m

Add @babel/plugin-syntax-import-meta (https://git.io/vbKK6) to the 'plugins' section of your Babel config to enable parsing.
at Parser.raise (...\node_modules@babel\parser\lib\index.js:3831:17):`

@lilleyse
Copy link
Contributor

lilleyse commented Sep 9, 2021

@ebogo1 Looks like another issue with zip.js in the latest release (also #9790). This is a regression from #9706. I marked this issue as priority - next release.

@ebogo1
Copy link
Contributor

ebogo1 commented Oct 14, 2021

@RobHills-Airborne without more information I don't think this is a separate issue from #9790, so I'll close this as well for now. There are several comments in #9790 about using @open-wc/webpack-import-meta-loader with rollup, which is a known workaround for older versions of webpack. My comment (#9790 (comment)) also mentions an alternative workaround that might be helpful. Thanks for reporting this!

@ebogo1 ebogo1 closed this as completed Oct 14, 2021
@ebogo1 ebogo1 moved this from Working on fix to Issue/PR closed in CesiumJS Issue/PR backlog Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants