@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:
- Created 2 years ago
- Reactions:3
- Comments:13 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same problem here.
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 theUsers/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