taro2.x时候把小程序转成Taro,然后现在想要转taro3,没有成功,Cannot set property 'filename' of undefined



  • Taro CLI 3.0.7 environment info:
    System:
    OS: macOS 10.15.6
    Shell: 5.7.1 - /bin/zsh
    Binaries:
    Node: 13.12.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /usr/local/bin/npm
    npmPackages:
    @tarojs/components: ^2.2.6 => 2.2.13
    @tarojs/mini-runner: ^2.2.6 => 2.2.13
    @tarojs/react: ^3.0.7 => 3.0.7
    @tarojs/router: 2.2.6 => 2.2.6
    @tarojs/runtime: ^3.0.7 => 3.0.7
    @tarojs/taro: ^2.2.6 => 2.2.13
    @tarojs/taro-h5: 2.2.6 => 2.2.6
    @tarojs/webpack-runner: 2.2.6 => 2.2.6
    @tarojs/with-weapp: ^2.2.6 => 2.2.13
    eslint-config-taro: 2.2.6 => 2.2.6
    eslint-plugin-taro: 2.2.6 => 2.2.6
    nerv-devtools: ^1.5.5 => 1.5.7
    nervjs: ^1.5.5 => 1.5.7
    react: ^16.13.1 => 16.13.1

    我转完后提示没有app.config.js,我直接创建了这个文件,但是感觉配置还是从app.js拿的,迷茫
    难道taro转成的项目的框架是nervjs??
    还是说所有page都要手动加*.config.js??
    imports是原小程序template转成的component,是要做什么特殊处理吗?

    e56a16cf-8dee-4c09-b0b5-7163f64a86f2-image.png

    具体报错如上



  • 请问您这个问题如何解决的?


登录后回复