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.

acorn not installed, but it's a peerDependency of acorn-dynamic-import

See original GitHub issue

versions:

  • node 10.15.1
  • npm 6.7.0
  • @storybook/react ^4.1.11 (which requires webpack@^4.23.1)

when i install just @storybook/react into my project, i get the following error:

npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.

i’ve looked into acorn-dynamic-import (a plugin for acorn), and the issue isn’t on their end. i’ve looked into acorn, but they’re the main library and the problem isn’t with them. i’ve looked into @storybook/react, but they’re merely requiring webpack, the problem isn’t with them. i’ve also opened a ticket with npm to see if there’s a dependency resolution issue somewhere. the last place i haven’t checked with is you guys, though i have my doubts here, both acorn and acorn-dynamic-import are “peer” dependencies in your dependency list.

i’ve been chasing this issue for a few weeks now, and i can’t seem to get any traction with it. but if there’s any thoughts on what else i should be looking into, that would be super helpful. the last bit that seems like it might be off is that webpack is using yarn, but i’m using npm in my project for dependency installation.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:16
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
ekkiscommented, Aug 17, 2019

I have the problem with 6.10.3

0reactions
worccommented, Feb 19, 2019

oof. it’s been like this for years, so i guess it’s not that bad to just keep using yarn. but man, that’s a strange decision on their part.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm WARN ... requires a peer of ... but none is installed. You ...
So you cannot install peer dependencies automatically with npm 3 and upwards. Updated Solution: Use following for each peer dependency to ...
Read more >
I must be very silly with laravel 6.0 - Laracasts
I have windows10 and homestead installed (i use vagrant) and i am trying to do that npm works for 2 days!! i have...
Read more >
acorn-dynamic-import - npm
Support dynamic imports in acorn. Latest version: 4.0.0, last published: 4 years ago. Start using acorn-dynamic-import in your project by ...
Read more >
Documenting Installation Problem with vue-beautiful-chat
You must install peer dependencies yourself. npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed.
Read more >
What's the benefit of installing peer dependencies? What if I ...
2 but none is installed. You must install peer dependencies yourself. npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but ...
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