We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述 [编译小程序是正常的,但是编译h5报编译错误,Failed to compile]
复现步骤 [npm run dev:h5]
[ ]
import Taro, { Component } from "@tarojs/taro"; import '@tarojs/async-await'; import Index from "./pages/index"; import "./app.less"; // 如果需要在 h5 环境中开启 React Devtools // 取消以下注释: // if (process.env.NODE_ENV !== 'production' && process.env.TARO_ENV === 'h5') { // require('nerv-devtools') // } class App extends Component { config = { pages: [ "pages/table/table", "pages/home/home", "pages/city/city" ], window: { backgroundTextStyle: "light", navigationBarBackgroundColor: "#fff", navigationBarTitleText: "WeChat", navigationBarTextStyle: "black" }, tabBar: { color: '#666', selectedColor: '#1AC4E2', backgroundColor: '#fff', list:[ { pagePath: 'pages/home/home', text: '首页', iconPath: 'images/nav_sellcar_normal.png', selectedIconPath: 'images/nav_sellcar_pressed.png' }, { pagePath: 'pages/table/table', text: '列表', iconPath: 'images/about-default.png', selectedIconPath: 'images/about-active.png' } ] } }; componentDidMount() { } componentDidShow() {} componentDidHide() {} componentDidCatchError() {} // 在 App 类中的 render() 函数没有实际作用 // 请勿修改此函数 render() { return <Index />; } } Taro.render(<App />, document.getElementById("app"));
期望行为 [期望编译通过]
报错信息
系统信息
Taro v1.2 及以上版本已添加 taro info 命令,方便大家查看系统及依赖信息,运行该命令后将结果贴下面即可。
taro info
Taro v1.3.9
Taro CLI 1.3.9 environment info: System: OS: macOS High Sierra 10.13.6 Shell: 3.2.57 - /bin/bash Binaries: Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node npm: 6.4.1 - ~/.nvm/versions/node/v8.11.4/bin/npm npmPackages: @tarojs/components: 1.3.14 => 1.3.14 @tarojs/plugin-babel: 1.3.14 => 1.3.14 @tarojs/plugin-csso: 1.3.14 => 1.3.14 @tarojs/plugin-less: 1.3.14 => 1.3.14 @tarojs/plugin-uglifyjs: 1.3.14 => 1.3.14 @tarojs/router: 1.3.14 => 1.3.14 @tarojs/taro: 1.3.14 => 1.3.14 @tarojs/taro-alipay: 1.3.14 => 1.3.14 @tarojs/taro-h5: 1.3.14 => 1.3.14 @tarojs/taro-quickapp: 1.3.14 => 1.3.14 @tarojs/taro-swan: 1.3.14 => 1.3.14 @tarojs/taro-tt: 1.3.14 => 1.3.14 @tarojs/taro-weapp: 1.3.14 => 1.3.14 @tarojs/webpack-runner: 1.3.14 => 1.3.14 eslint-config-taro: 1.3.14 => 1.3.14 eslint-plugin-taro: 1.3.14 => 1.3.14 nerv-devtools: ^1.4.0 => 1.4.4 nervjs: ^1.4.0 => 1.4.4 npmGlobalPackages: typescript: 3.3.1
补充信息 [是不是因为less文件引用路径有问题?]
The text was updated successfully, but these errors were encountered:
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
Sorry, something went wrong.
升级到最新版再试试吧。
No branches or pull requests
问题描述
[编译小程序是正常的,但是编译h5报编译错误,Failed to compile]
复现步骤
[npm run dev:h5]
[
![image](https://user-images.githubusercontent.com/22094990/63669711-52281780-c80d-11e9-81cb-4467ed8fd338.png)
]
期望行为
[期望编译通过]
报错信息
[
![image](https://user-images.githubusercontent.com/22094990/63669890-daa6b800-c80d-11e9-80ab-81c790afb2d6.png)
]
系统信息
Taro v1.3.9
Taro CLI 1.3.9 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node
npm: 6.4.1 - ~/.nvm/versions/node/v8.11.4/bin/npm
npmPackages:
@tarojs/components: 1.3.14 => 1.3.14
@tarojs/plugin-babel: 1.3.14 => 1.3.14
@tarojs/plugin-csso: 1.3.14 => 1.3.14
@tarojs/plugin-less: 1.3.14 => 1.3.14
@tarojs/plugin-uglifyjs: 1.3.14 => 1.3.14
@tarojs/router: 1.3.14 => 1.3.14
@tarojs/taro: 1.3.14 => 1.3.14
@tarojs/taro-alipay: 1.3.14 => 1.3.14
@tarojs/taro-h5: 1.3.14 => 1.3.14
@tarojs/taro-quickapp: 1.3.14 => 1.3.14
@tarojs/taro-swan: 1.3.14 => 1.3.14
@tarojs/taro-tt: 1.3.14 => 1.3.14
@tarojs/taro-weapp: 1.3.14 => 1.3.14
@tarojs/webpack-runner: 1.3.14 => 1.3.14
eslint-config-taro: 1.3.14 => 1.3.14
eslint-plugin-taro: 1.3.14 => 1.3.14
nerv-devtools: ^1.4.0 => 1.4.4
nervjs: ^1.4.0 => 1.4.4
npmGlobalPackages:
typescript: 3.3.1
补充信息
[是不是因为less文件引用路径有问题?]
The text was updated successfully, but these errors were encountered: