tarojs-plugin-ssr icon indicating copy to clipboard operation
tarojs-plugin-ssr copied to clipboard

使用2.1.0或2.1.2版本运行起来之后报这个错:Error: Cannot find module './config/index.js'

Open xuganggit opened this issue 2 years ago • 3 comments

ex4

xuganggit avatar Sep 03 '23 02:09 xuganggit

@xuganggit 是的,新版本的 Taro 配置文件支持通过 TypeScript 编写,但是插件并不支持该特性。 这个问题可能会跟随这个 https://github.com/NervJS/tarojs-plugin-ssr/issues/36 一起解决。

SyMind avatar Nov 12 '23 02:11 SyMind

有没有其他的备选方案或者可以解决这个问题 只能通过降低版本来操作吗

fangao1024 avatar Mar 06 '24 03:03 fangao1024

有没有其他的备选方案或者可以解决这个问题 只能通过降低版本来操作吗

@fangao1024 config 目录下的文件改为 *.js

SyMind avatar Mar 06 '24 07:03 SyMind