在Symfony中没有找到这些相关模块的打字稿

问题描述

我有带有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]

在我看来,我有这个: [在此处输入图片描述] [2]

我尝试在ts文件中使用./,但错误继续。

有什么主意吗?

谢谢 [1]:https://i.stack.imgur.com/5OLkr.png [2]:https://i.stack.imgur.com/4Mh2a.png

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)