-
Notifications
You must be signed in to change notification settings - Fork 361
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
Error: Unexpected token when including a file with declare namespace
in it.
#1088
Comments
btw the TSConfig it's using looks like this: {
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"incremental": true,
"target": "ESNext",
"module": "ESNext",
"outDir": "./dist",
"rootDir": "./src",
"baseUrl": ".",
"jsx": "react",
"lib": ["DOM", "ESNext"],
"composite": true,
"declaration": true,
"typeRoots": ["./node_modules/@types", "./src/@types", "./src/types"]
},
"include": ["src/**/*"],
"references": []
} and the extended file looks like this: {
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"noEmitOnError": true
}
} |
A reproduction would be helpful, are you using |
We're just using |
A repro is always helpful and almost always necessary. I can't reproduce so will definitely need a minimal reproduction. Babel shouldn't be running against |
I tried to reproduce it in another project but it hasn't happened yet :S |
What's more, I removed the babelrc file from the actual project, and it built as normal. I'll fiddle with it a bit more and see if it breaks again, and if not... false alarm 😅 |
No worries, feel free to ping if/when you do find something out. One thing that might be worth trying is uninstalling & reinstalling |
It might also be that it was getting stuck on this babel issue with 0.14.x, and then by upgrading, it went away but the .babelrc file was then causing the other issue to remain. Hmm... |
Hi microbundle team.
I'm trying to build a package, and I've needed to override some types since the types repo for the main dependency hasn't been updated.
I was on
0.14.x
before, but I updated to0.15.1
and I still get this error.I actually had two errors in this file. The first error said:
This error I was able to resolve with a
.babelrc.json
file, but I can't see what configuration can be used to resolve the first error.I noticed that previously we were able to build the app when we used
declare module
OpenSeadragonV2, but
declare namespace` specifically is causing this.Any suggestions on what configuration can resolve this issue?
Thanks
The text was updated successfully, but these errors were encountered: