问题描述
我有带有webpack-encore和Typescript的Symfony。
在编译时,出现此错误: 找不到这些相关模块
这是我的网页包:
var Encore = require('@symfony/webpack-encore');
if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}
Encore
// directory where compiled assets will be stored
.setoutputPath('public/build/')
// public path used by the web server to access the output path
.setPublicPath('/build')
.enableVueLoader()
.splitEntryChunks()
.enableSingleRuntimeChunk()
.enableTypeScriptLoader()
.addEntry('js/files/home','./templates/files/Assets/typescript/page/home.ts')
;
// load Encore Config
var config = Encore.getWebpackConfig();
// module Export
module.exports = config;
这是我的tsconfig.json: [在此处输入图片描述] [1]
有什么主意吗?
谢谢 [1]:https://i.stack.imgur.com/5OLkr.png [2]:https://i.stack.imgur.com/4Mh2a.png
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)