-
Notifications
You must be signed in to change notification settings - Fork 18
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
issue with import cesium and webpack #21
Comments
Any update on this? I'm having the same issue and getting the same errors. |
I think the issue is not Craco related, the newer version of Cesium doesn't export default cesium, so you have to use individual imports |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am encountering two issues with the create-react-app v 3.4.1 and craco-cesium v 1.2.0.
I created a simple application using create-react-app and install @craco, craco-cesium and cesium. See project package.json file
in the view, I have the following Cesium import line which returns undefined:
after deleting the
node_modules
andpackage-lock.json
files and runningnpm install
the depencencies are installed again, though starting the appnpm run start
showing the following error:listing the webpack versions. this is what I see:
the associated react-scripts uses webpack v 4.43.0 see https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/package.json#L81
though craco-cesium uses 4.42.1, see https://github.com/darwin-education/craco-cesium/blob/master/package.json#L15
is this the cause of the issue?
The text was updated successfully, but these errors were encountered: