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.

Last moment version broke storybook/addons-knobs

See original GitHub issue
WARNING in node_modules/moment/src/lib/locale/locales.js
Module not found: Error: Can't resolve './locale' in '~/node_modules/moment/src/lib/locale'

This addons is broken since the last moment version was released.

Related issue: https://github.com/moment/moment/issues/4218

You could force the version to solve it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ezkucommented, Oct 11, 2017

For a quick fix if you depend on knobs for development, try

cd node_modules/@storybook/addon-knobs
npm install moment@2.18.1
0reactions
danielduancommented, Oct 12, 2017

Looks like moment broke a whole bunch of stuff. Gonna close this since it looks like reinstalling the dependencies would fix this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Last moment version broke storybook/addons-knobs #2006
This addons is broken since the last moment version was released. ... You could force the version to solve it. The text was...
Read more >
Storybook Addon Knobs (deprecated)
Storybook Addon Knobs allow you to edit props dynamically using the Storybook UI. You can also use Knobs as a dynamic variable inside...
Read more >
Problem with npm install - Could not resolve dependency. Is ...
I have an Angular app, I have updated the app to the version 11. I have node v15.10.0 ...
Read more >
Broken build with updated Storybook (5.3) Configuration
I now have a main.js, manager.js, and preview.js. When I publish with npm this is the error I see this, even though the...
Read more >
Next-level component showcasing with Storybook controls
Learn about controls, a new Storybook addon that lets you ... Storybook controls vs. knobs: Improving your React component testing ...
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