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.

Missing ts-pnp dependency

See original GitHub issue

Installing @storybook/react@5.1.9, I’m now presented with the following warning from npm:

npm WARN ts-pnp@1.1.2 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.

That leads me to:

> npm ls ts-pnp
project@4.8.2 C:\Users\nope\git\project
`-- @storybook/react@5.1.9
  `-- @storybook/core@5.1.9
    `-- pnp-webpack-plugin@1.4.3
      `-- ts-pnp@1.1.2

Which was introduced in commit https://github.com/storybookjs/storybook/commit/c28af59e7db496ed01cec55dab70c98916d5d858 by @crubier. Why am I being asked to install typescript things in my not-typescript repo?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
crubiercommented, Jun 25, 2019

Hmm this seems to be a limitation of pnp-webpack-plugin, which is kind of “hardcoded” to use typescript: https://github.com/arcanis/pnp-webpack-plugin#ts-loader-integration

I didn’t see this problem as I tested it in a project that already uses typescript…

To be fair I think that commit https://github.com/storybookjs/storybook/commit/c28af59e7db496ed01cec55dab70c98916d5d858 can be reverted as the solution we found afterwards was to use storybook presets.

0reactions
stale[bot]commented, Oct 20, 2019

Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependencies missing prevents pnpm working #149 - GitHub
When blitz is install as a dev dependency in a project using pnpm , there are many dependencies missing. This is probably because...
Read more >
NPM throwing missing dependency but it exists?
The issue seems to be that the request package has been deprecated and fs is a dependency of request so webpack is no...
Read more >
Automated Malware Analysis Report for ExamShieldLauncher.exe ...
Report size exceeded maximum capacity and may have missing disassembly code. Report size getting too big, too many NtOpenKeyEx calls found.
Read more >
The sea urchin animal pole domain is a Six3-dependent neurogenic ...
Six3-dependent regulatory proteins are orthologous to those expressed in the vertebrate ... Nodal morphants were lost in the double morphants (Fig. 7G,H).
Read more >
Extrinsic Calibration for LiDAR–Camera Systems Using Direct ...
A two-stage framework (TSPnP) from coarse to fine is presented to solve the ... dependent on the calibration target or calibration object, ...
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