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

Fix import error in CRA environment #16

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Conversation

theduckylittle
Copy link
Contributor

Using @planet/maps in a CRA app was causing an import error since the package.json specifys type: "module" the loader wants this import to end in .js.

@theduckylittle theduckylittle changed the title Fix import error in CRA environment Draft: Fix import error in CRA environment Oct 25, 2022
@theduckylittle theduckylittle changed the title Draft: Fix import error in CRA environment Fix import error in CRA environment Oct 25, 2022
Using @planet/maps in a CRA app was causing an import error
since the package.json specifys `type: "module"` the loader
wants this import to end in `.js`.
@theduckylittle theduckylittle merged commit 4c00dbf into main Oct 25, 2022
@theduckylittle theduckylittle deleted the fix/imports-in-cra branch October 25, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants