-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Typescript compile error during bundle gives unhelpful assertion error #5507
Comments
@Ragzouken thanks for the issue, I just discovered it myself and it will be fixed in #5029 |
@paskausks thanks for a catch, can you provide full command you run? |
@bartlomieju The tsconfig is: {
"compilerOptions": {
"lib": [ "DOM", "ES6", "DOM.Iterable", "ScriptHost"],
"strict": true,
"esModuleInterop": true
},
"exclude": [
"public"
]
} |
@bartlomieju found the issue which caused this (the same which caused the from index.ts: import { css } from "./emotion.js"; and emotion.js // @deno-types=https://github.com/emotion-js/emotion/blob/v10.0.6/packages/emotion/types/index.d.ts
export * from 'https://unpkg.com/[email protected]/dist/emotion.esm.js?module'; For comparison - I have preact and htm re-exports and those work fine. |
@paskausks thanks for repro, I'll look into it. |
I'm getting this same error, but haven't created a reproduction yet |
In this case, I forgot to pass
-c tsconfig.json
to add DOM to the libs. I'm assuming this should be instead outputting the compile errors.The text was updated successfully, but these errors were encountered: