-
Notifications
You must be signed in to change notification settings - Fork 31
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
Quokka not using ts compilerOptions in .quokka file #710
Comments
The ability to put the Quokka TypeScript config in {
"name": "quokka-paths-example",
"version": "1.0.0",
"quokka": {
"ts": {
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",
"moduleResolution": "node",
"paths": {
"*": [
"*",
"packages/*",
"app/*"
]
}
}
}
},
"main": "app.ts",
"author": "Chris Sauve <chrismsauve@gmail.com>",
"license": "MIT"
} |
I also attempted to use inline config and that didn't work either. Example ({
"ts": {
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",
"moduleResolution": "node",
"paths": {
"*": [
"*",
"packages/*",
"app/*"
]
}
}
}
})
import myPackage from 'my-package';
import app from 'app';
console.log('myPackage :>> ', myPackage);
console.log('app :>> ', app); |
I suspect that the problem is that the |
Thanks for reporting your problem. Quokka was indeed not handling the case where paths were set/overridden in the your Quokka configuration. This has been fixed in Quokka for VS Code |
Amazing! Thank you! |
Issue description or question
Quokka appears to not be using ts compilerOptions configuration in the
.quokka
file, as described at https://quokkajs.com/docs/configuration.html#compiler-settingsIn particular,
paths
was what appears to be not be working. If I putpaths
in atsconfig.json
file, then it works, but attempting to delete thetsconfig.json
and putting the configuration underts/compilerOptions
in the.quokka
file, it appears to not work.Is this issue related to Quokka not outputting the expected results of your code?: No
Sample repository link
https://github.com/msabramo/quokka-paths-example
Note this repo is forked from https://github.com/lemonmade/quokka-paths-example -- that original repo works fine because it has the
paths
configuration intsconfig.json
. My fork is the same except it attempts to move the configuration to the.quokka
file, but it doesn't work.Quokka.js Console Output
Code editor version
Visual Studio Code v1.61.2
OS name and version
OSX
The text was updated successfully, but these errors were encountered: