MeltingDog
MeltingDog

Reputation: 15490

`No "exports" main resolved ` error when trying to run Storybook

I'm suddnely getting an error when running yarn storybook on my project. Storybook was working fine before, but suddenly stopped working giving me the errors:

This appears to be associated with Babel: ``No "exports" main resolved /node_modules/@babel/helper-compilation-targets/package.json`

I've tried the following:

But the issue keeps happening.

Would anyone know what I could do?

(ps I am on MacOs Mojave)

Upvotes: 7

Views: 3665

Answers (1)

MeltingDog
MeltingDog

Reputation: 15490

This turned out to be my local version of node.js conflicting with the packages in the project. I changed version to that indicated in the package and it seems to be working now.

Upvotes: 6

Related Questions