New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
@parcel/core: Cannot find Parcel plugin "@parcel/transformer-typescript-types" #7197
Comments
Using your package.json running @parcel/core: Cannot find Parcel plugin "@parcel/packager-ts" After adding that as a dependency as well, it built successfully. |
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
I think it's also probably worth noting that I'm on a MacBook Pro running Big Sur on an Intel chip |
I'm also running into the same issue. |
Just ran into the same error and the above workaround didn't seem to work for me either unfortunately. It seems to be something happening on MacOS machines, doesn't seem to happen on WSL for example. |
Copy and pasting the default config's content |
It has something to do with the project root being incorrectly set when calling For others trying to debug:
entries has been resolved from the default ["."] to the directory where I ran parcel build (e.g. ["/home/lann/my-project"] ). Then that line above appears to resolve to the parent of my actual project root. It then tries to find a project root from there, which of course doesn't work properly.
|
Same problem here. |
Can confirm this issue still persists, Parcel is looking for the module in
|
I ran into this as well. Deleting a stray |
I have a very similar issue here.
Debugging into the code @lann mentioned leads me to the same observation.
Another fun thing: Parcel is rewriting my package.json file to the following .... {
"devDependencies": {
"@parcel/transformer-yaml": "^2.3.2"
}
}
Update: With
Wasn't able to find a good workaround yet. Manually passing source index via cli args works for me as well so maybe I move my whole Workaround: Having my own transformer config in .parcelrc .babelrc {
"extends": "@parcel/config-default",
"transformers": {
"*.{yaml,yml}": ["@parcel/transformer-yaml"]
}
}
|
This will probably be fixed with #7537 |
This should be fixed with the current nightlies. |
I had these issues with a package in a pnpm monorepo.
Adding the dependencies in the root
|
馃悰 bug report
Trying to build a TypeScript project with types leads to
馃帥 Configuration (.babelrc, package.json, cli command)
馃 Expected Behavior
Build typescript project and product .d.ts file.
馃槸 Current Behavior
馃捇 Code Sample
馃實 Your Environment
The text was updated successfully, but these errors were encountered: