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.

Cannot execute yarn run storybook.

See original GitHub issue

Hello everyone.

I am trying to learn how to use React Diagrams in one of my projects. To do that I followed the steps mentioned here -> Issue 83

  1. Clone the repo.
  2. npm install .
  3. npm run storybook

However I get the following error in Terminal.

ERROR in [at-loader] ./src/Common.ts:3:22
    TS2307: Cannot find module '_debugger'.

What should I do?

The complete terminal log:-

> start-storybook -p 9001 -c .storybook

@storybook/react v3.2.17

Failed to load ./.env.
=> Loading custom addons config.
=> Loading custom webpack config (extending mode).
 12% building modules 24/25 modules 1 active ...agrams/react-diagrams/demos/index.tsx
[at-loader] Using typescript@2.6.2 from typescript and "tsconfig.json" from /Users/horcrux2304/Desktop/React Diagrams/react-diagrams/tsconfig.json.

 94% asset optimization
[at-loader] Checking started in a separate process...

[at-loader] Checking finished with 1 errors
webpack built 96ee17ffc564c2fe184f in 8005ms
Hash: 96ee17ffc564c2fe184f
Version: webpack 3.10.0
Time: 8005ms
                       Asset     Size  Chunks                    Chunk Names
    static/manager.bundle.js   2.6 MB       0  [emitted]  [big]  manager
    static/preview.bundle.js  3.13 MB       1  [emitted]  [big]  preview
static/manager.bundle.js.map  3.15 MB       0  [emitted]         manager
static/preview.bundle.js.map  3.68 MB       1  [emitted]         preview
  [86] (webpack)/buildin/module.js 517 bytes {0} {1} [built]
 [200] ./node_modules/@storybook/react/dist/server/config/polyfills.js 113 bytes {0} {1} [built]
 [491] multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./.storybook/addons.js ./node_modules/@storybook/react/dist/client/manager/index.js 52 bytes {0} [built]
 [492] ./.storybook/addons.js 43 bytes {0} [built]
 [493] ./node_modules/@storybook/addon-actions/register.js 30 bytes {0} [built]
 [494] ./node_modules/@storybook/react/dist/client/manager/index.js 404 bytes {0} [built]
 [710] ./node_modules/@storybook/react/dist/client/manager/provider.js 3.31 kB {0} [built]
 [712] multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js (webpack)-hot-middleware/client.js?reload=true ./.storybook/config.js 64 bytes {1} [built]
 [713] ./node_modules/@storybook/react/dist/server/config/globals.js 105 bytes {1} [built]
 [714] (webpack)-hot-middleware/client.js?reload=true 7.35 kB {1} [built]
 [718] ./node_modules/strip-ansi/index.js 161 bytes {1} [built]
 [720] (webpack)-hot-middleware/client-overlay.js 2.21 kB {1} [built]
 [725] (webpack)-hot-middleware/process-update.js 4.33 kB {1} [built]
 [726] ./.storybook/config.js 185 bytes {1} [built]
 [802] ./demos/index.tsx 1.99 kB {1} [built]
    + 862 hidden modules

ERROR in [at-loader] ./src/Common.ts:3:22
    TS2307: Cannot find module '_debugger'.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
horcrux2301commented, Dec 16, 2017

@dylanvorster I think I communicated my point in a wrong manner. What I want is better documentation or some resource about how to integrate this repo into an already running React App.

For example I have a React App that I created using create-react-app and now I executed the npm install storm-react-diagrams. And then I went on to the TypeScript Website and learned how to integrate WebPack and React and TypeScript ( Resource ). But after this I am clueless. I tried a bunch of things but none seem to work. 😦

I am sorry if all of this sounds too naive though.

0reactions
dylanvorstercommented, Dec 16, 2017

Closing in favour of #103 as I cannot reproduce the issue on my side using the master branch

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error running storybook - sh: 1: start-storybook: not found
This error is due to the node_modules folder. If you delete that folder and run npm install . it will work. Mostly due...
Read more >
Install Storybook
YARN. npm run storybook. Copy. It will start Storybook locally and output the address. Depending on your system configuration, it will automatically open...
Read more >
Cannot start React App after installing Storybook? Here's how ...
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
Read more >
@storybook/cli | Yarn - Package Manager
Storybook CLI (Command Line Interface) is the easiest way to add Storybook to your project. Screenshot. Go to your project and run: cd...
Read more >
@storybook/react-native - npm
Start using @storybook/react-native in your project by running `npm i ... To run the server you can use yarn start-storybook or add a...
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