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.

TypeScript regression in 6.0.0-rc.22

See original GitHub issue

Describe the bug rc.22 gives “impossible to import loader for .ts” error.

To Reproduce Steps to reproduce the behavior:

  1. Clone my minimum working example at https://github.com/nareshbhatia/react-component-mwe. This has dependencies set to rc.21.
  2. Run the example (yarn then yarn storybook). Storybook should start and show one component.
  3. Change the dependency to rc.22 and run again.
  4. You will see the following error:
$ start-storybook -p 6006
info @storybook/react v6.0.0-rc.22
info
WARN => File /Users/naresh/projects/react-component-mwe/.storybook/main.ts is detected
WARN    but impossible to import loader for .ts
info => Loading presets
WARN => File /Users/naresh/projects/react-component-mwe/.storybook/main.ts is detected
WARN    but impossible to import loader for .ts
info => Loading presets
info => Loading config/preview file in "./.storybook".
info => Using default Webpack setup.
webpack built a35bf5650e72217f6be8 in 4648ms

Expected behavior TypeScript project should run without any errors.

System:

Environment Info:

  System:
    OS: macOS 10.15.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
  Binaries:
    Node: 12.18.2 - ~/.nvm/versions/node/v12.18.2/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v12.18.2/bin/npm
  Browsers:
    Chrome: 84.0.4147.105
    Safari: 13.1.2
  npmPackages:
    @storybook/addon-essentials: 6.0.0-rc.21 => 6.0.0-rc.21
    @storybook/addons: 6.0.0-rc.21 => 6.0.0-rc.21
    @storybook/react: 6.0.0-rc.21 => 6.0.0-rc.21

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
shilmancommented, Aug 11, 2020

Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.1 containing PR #11885 that references this issue. Upgrade today to try it out!

Closing this issue. Please re-open if you think there’s still more to do.

1reaction
shilmancommented, Aug 3, 2020

@ajkl2533 that’s why i said it’s a workaround

Read more comments on GitHub >

github_iconTop Results From Across the Web

@types/regression - npm
TypeScript definitions for regression. ... Start using @types/regression in your project by running `npm i @types/regression`.
Read more >
javascript - Fix vulnerabilities in NPM manually - Stack Overflow
You can get a report of all vulnerabilities using npm audit . In that report for each vulnerability you will also see a...
Read more >
Homepage - AWS Lambda Powertools for TypeScript
Lambda Layer: arn:aws:lambda:{region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:6; npm: npm install @aws-lambda-powertools/tracer ...
Read more >
Type Regression Testing to Detect Breaking ... - DROPS
regression testing uses a dynamic analysis to learn models of the library ... function, for example strong-params at version 0.7.0.6 Then, a public...
Read more >
Type Regression Testing to Detect Breaking Changes in Node ...
regression testing uses a dynamic analysis to learn models of the library ... implementation consists of 1 800 lines of TypeScript code and...
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