Closed TerryChenUI closed 4 years ago
Forgot to add .ts
to resolve.extensions
of webpack config.
Will be fixed in next release. Currently you can use import SelectTree from '../../packages/select-tree/index.ts'
instead.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Environment
Describe the bug
when use vuepress-plugin-typescript, I import a typescript component, it will show error of not find.
Steps To Reproduce
2.enhanceApp.ts
3.packages/select-tree/index.ts
client?a3cb:150 [WDS] Errors while compiling. Reload prevented. errors @ client?a3cb:150 eval @ socket.js?b019:47 sock.onmessage @ SockJSClient.js?b9e5:63 EventTarget.dispatchEvent @ sockjs.js?9be2:170 eval @ sockjs.js?9be2:888 SockJS._transportMessage @ sockjs.js?9be2:886 EventEmitter.emit @ sockjs.js?9be2:86 WebSocketTransport.ws.onmessage @ sockjs.js?9be2:2962 client?a3cb:159 ./docs/.vuepress/enhanceApp.ts Module not found: Error: Can't resolve '../../packages/select-tree' in 'E:\quick\packages\admin-component\docs.vuepress'