-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambient module not included in transformer-typescript-types #8642
Comments
|
That makes sense but even still when using either of those imports in multiple places it doesn't resolve the build error. Is there somewhere specific where you recommend putting that import for the parcel.d.ts file? Edit: I'm on version 2.6.2 if that makes a difference |
So apparently a regular import doesn't work, my bad. |
Amazing, thank you for the quick support there. I appreciate it. |
Thanks @mischnic, this works for me too! I got Would be great to document this better since I just stumbled upon this issue randomly while searching for existing reports of another issue that I encountered. |
Indeed 😉 parcel-bundler/website#1059 Though of course |
🐛 bug report
Error message from compiler:
I'm trying to add model-viewer which is a web component to a react library. I've gone ahead and added this to the
parcel.d.ts
file:This appeases the tslint in vscode and when I run tsc in the terminal on the directory. It's my understanding that this should essentially work when running
parcel build
orparcel watch
🎛 Configuration (.babelrc, package.json, cli command)
tsconfig: https://github.com/reservoirprotocol/reservoir-kit/blob/main/tsconfig.base.json
parcelrc: https://github.com/reservoirprotocol/reservoir-kit/blob/main/.parcelrc
🔦 Context
Trying to integrate the model-viewer web component in my react library packaged by parceljs:
https://github.com/google/model-viewer
The text was updated successfully, but these errors were encountered: