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.

@parcel/core: Cannot find Parcel plugin "@parcel/transformer-typescript-types"

See original GitHub issue

🐛 bug report

Trying to build a TypeScript project with types leads to

@parcel/core: Cannot find Parcel plugin "@parcel/transformer-typescript-types"

🎛 Configuration (.babelrc, package.json, cli command)

{
  "name": "test",
  "version": "0.0.0",
  "source": "src/index.ts",
  "module": "dist/module.js",
  "types": "dist/types.d.ts",
  "license": "MIT",
  "scripts": {
    "watch": "parcel watch",
    "build": "parcel build --no-autoinstall"
  },
  "devDependencies": {
    "@parcel/transformer-typescript-types": "^2.0.0",
    "parcel": "^2.0.0",
    "typescript": "^4.4.4"
  }
}

🤔 Expected Behavior

Build typescript project and product .d.ts file.

😯 Current Behavior

$ parcel build --no-autoinstall
🚨 Build failed.

@parcel/core: Cannot find Parcel plugin "@parcel/transformer-typescript-types"

.\node_modules\@parcel\config-default\index.json:4:26
    3 |   "transformers": {
  > 4 |     "types:*.{ts,tsx}": ["@parcel/transformer-typescript-types"],
  >   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Cannot find module "@parcel/transformer-typescript-types"
    5 |     "bundle-text:*": ["...", "@parcel/transformer-inline-string"],
    6 |     "data-url:*": ["...", "@parcel/transformer-inline-string"],

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

💻 Code Sample

export let x = 1

🌍 Your Environment

Software Version(s)
Parcel 2.0.0
Node 14.17.6
npm/Yarn yarn 1.22
Operating System Windows, git bash

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
icoppcommented, Jan 14, 2022

Same problem here.

5reactions
drewdecarmecommented, Oct 31, 2021

I have the same issue here and the above-suggested fix didn’t work for me. From what I can tell from the error report, Parcel might be trying to access the package from the wrong directory. I would expect that it would be in my node_modules but instead, the error report says it’s looking for the package in the Users/my_user_name/index

$ parcel build
🚨 Build failed.

unknown: Could not resolve module "@parcel/transformer-typescript-types" from "/Users/my_user_name/index"

I think it’s also probably worth noting that I’m on a MacBook Pro running Big Sur on an Intel chip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'parcel-bundler/src/Logger' - Stack Overflow
The plugin for Transcrypt references files that have been refactored in newer versions of the bundler. To get it to work you need...
Read more >
Parcel Plugin Search
Parcel Plugin Search. Plugin type ... Parcel v2 transformer plugin for EJS. 17 days ago 31.3k ... Plasmo Parcel Transformer for Web Extension...
Read more >
Plugin Configuration - Parcel
How to use plugins and create named pipelines. ... Parcel is designed to be very modular, @parcel/core itself is (almost) not specific to...
Read more >
@inventory/parcel-plugin-handlebars - npm
Parcel plugin to compile handlebars layouts templates. ... Add a README to your package so that users know how to get started.
Read more >
@parcel/core | Yarn - Package Manager
Fix background image data urls missing quotes - Details · Fix development builds not downleveling nested selectors with @parcel/css . · Upgrades htmlnano...
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