Skip to content
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

Exports not found in '@cesium/engine' #12035

Closed
claustres opened this issue Jun 12, 2024 · 2 comments
Closed

Exports not found in '@cesium/engine' #12035

claustres opened this issue Jun 12, 2024 · 2 comments

Comments

@claustres
Copy link

claustres commented Jun 12, 2024

What happened?

The following error appears when launching an app bundled with Webpack:
export '_shaderspbrParameters' (reexported as '_shaderspbrParameters') was not found in '@cesium/engine'

It seems to me that the cesium package is using "@cesium/engine": "^9.1.0" as a dependency requirement, which could lead to the installation of the 9.2 engine version that does not appear to work well with 1.117 version.

A similar trick as in #12034 can solve this in your package.json:

"resolutions": {
    "@cesium/engine": "9.1.0"
}

The problem does not appear with version 1.118.

Reproduction steps

  1. add "cesium": "1.117.0" in your package.json
  2. run yarn install
  3. launch your app

Sandcastle example

No response

Environment

Browser: Chrome 125
CesiumJS Version: 1.117
Operating System: Linux Debian 12

@ggetz
Copy link
Contributor

ggetz commented Jun 14, 2024

Thanks for the report @claustres! I believe this is a duplicate of #11834. I'm going to close this issue to keep discussion in one place. Thanks!

@claustres
Copy link
Author

@ggetz Yes you are right, I missed this one. Maybe the use of a package.lock file will help solve this kind of issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants