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

Having a build issue (Q/A) #1050

Closed
curavcy opened this issue Mar 21, 2021 · 3 comments · Fixed by #1053
Closed

Having a build issue (Q/A) #1050

curavcy opened this issue Mar 21, 2021 · 3 comments · Fixed by #1053

Comments

@curavcy
Copy link

curavcy commented Mar 21, 2021

Using Next,js to start, But cannot with these problem. Anyone recognize it before?
Already deleted package.lock.json installed again.
Using Node v14.15.5, Npm v6.14.11.

Error: Package subpath './package.json' is not defined by "exports" in
    C:\Users\...\node_modules\framer-motion\package.json
    Code: ERR_PACKAGE_PATH_NOT_EXPORTED
@mattgperry
Copy link
Collaborator

Hmm this sounds daft (because where else is it reading exports from in the first place?) but looking at this: react-native-community/cli#1168 if something defines exports, as we do now, package.json needs to have a specific export for it to be importable. I’ll take a look at this later today.

@mattgperry
Copy link
Collaborator

@curavcy can you try 4.0.1-rc.0 for me? I've attempted a fix

@curavcy
Copy link
Author

curavcy commented Mar 22, 2021

@mattgperry Thank you for the response I have fixed with node v12.6.0. No errors. But i will try 4.0.1-rc.0 with latest node version.

@mergetron mergetron bot closed this as completed in #1053 Mar 23, 2021
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 a pull request may close this issue.

2 participants