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.

[2.9.0] - Crash pipeline cannot find module 'typescript'

See original GitHub issue

Describe the bug Crash on Node projects without typescript

To Reproduce Just use 2.9.0 without typescript installed as peer dependency.

import { Trans } from "@lingui/react"

export default function App() {
   return <Trans>This should be translated!</Trans>
}

Expected behavior Not crash, should be built or something like that.

  • jsLingui version: 2.9.0

What’s the reason to put typescript as peer dependecy, when a lot of projects don’t need typescript for anything. Shouldn’t be built before publish the package? In plain Javascript will work for all the projects.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
theKasheycommented, Jan 17, 2020

😎I have an idea how to handle it in 3 lines of code…

3reactions
Gouescommented, Jan 12, 2020

Hello,

any progress on fixing this? Can you update documentation to say that typescript is now required in a minor bump?

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Cannot find module 'typescript' in Angular 4?
3. Hi @Sajeetharan I have installed it globall using your command above. · 1. try to uninstall angular-cli globally, run npm cache clean...
Read more >
Changelog | Meteor API Docs
The typescript npm package has been updated to version 3.8.3. To pass Node command line flags to the server node instance, now it...
Read more >
Cannot find module 'typescript' Error in TS | bobbyhadz
To solve the cannot find module 'typescript' error, make sure to install typescript globally by running the npm i -g typescript command and...
Read more >
Changelog - JavaScript Standard Style
This pre-release exists to test out the ESLint 8 related changes and discover possible backwards incompatible changes that comes with it and mitigate...
Read more >
Typescript Can't Find Module Less - ADocLib
Here part of webpack.config.js file Error can't find module when using less-loader and ... [2.9.0] - Crash pipeline cannot find module 'typescript' #599....
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