You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the entry of the webpack.config.js in this project is test/fixture/index.tsx , you can not set the rootDir to src unless you change the entry to src/xxx.tsx
@Brooooooklyn not for the dev on ts-import-plugin.
I'm using it to dev a react project(generated through create-react-app project --scripts-version=react-scripts-ts). The webpack config is ejected and I'm trying to inject ts-import-plugin for manually tree-shaking packs. Without ts-import-plugin, ts-loader read the tsconfig.json(contains rootDir) under my project well, but after adding the import syntax transforming hook, compiler print out the error message.
I suppose the upstream piped out by ts-import-plugin and is cached in memory(or some virtual file zone) cause the ts compiler failed.
In tsconfig.json, I set the rootDir option:
The compiler console throw error:
Any idea on it?
The text was updated successfully, but these errors were encountered: