question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package path ./react is not exported from package

See original GitHub issue

Hello, installing this package then importing it in my project throws the following error: Module not found: Error: Package path ./react is not exported from package C:\Users\Mak\Sites\Tests\erb-4.0.1-qms\node_modules\@formkit\auto-animate (see exports field in C:\Users\Mak\Sites\Tests\erb-4.0.1-qms\node_modules\@formkit\auto-animate\package.json)

How to fix it? Thank you.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
markgazecommented, May 23, 2022

I had this on a Remix app, I had to add the following to my remix.config.js config file to make it work:

serverDependenciesToBundle: ['@formkit/auto-animate/react']
2reactions
justin-schroedercommented, May 23, 2022

Thanks for the heads up @markgaze

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Package path . is not exported from ...
The issue for me ended up being image imports in the js file. I had these mock valus: import Course1 from "../../ui/course-1.png"; ...
Read more >
(React) Error [ERR_PACKAGE_PATH_NOT_EXPORTED]
package path not exported error. Open your terminal in your project's root directory (where your package.json file is) and run the following commands....
Read more >
Package path . is not exported from package · Issue #5456
I'm trying to add firebase to react-electron-boilerplate and after adding "firebase": "9.0.1" to my package.json and running yarn. I have this ...
Read more >
Module not found: Error: Package path . is not exported from ...
[Solved]-Module not found: Error: Package path . is not exported from package-Reactjs. import firebase from 'firebase/compat/app'; import 'firebase/compat/ ...
Read more >
Code-Splitting - React
math.js export function add(a, b) { return a + b; }. Bundle: ... to make sure that Babel can parse the dynamic import...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found