wuba / taro-playground

The Taro Playground App is a cross-platform application developed using Taro, to help developers develop and debug Taro applications.
https://wuba.github.io/taro-playground/
Apache License 2.0
246 stars 51 forks source link

yarn dev:tt 编译抖音小程序报错 #90

Closed Petrus-Han closed 1 year ago

Petrus-Han commented 1 year ago

✖ Errors:

ModuleBuildError: Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: {path}/node_modules/react-native/index.js: Unexpected token, expected "{" (14:7)

12 | 13 | // Components

14 | import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo'; | ^ 15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator'; 16 | import typeof Button from './Libraries/Components/Button'; 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS'; at parser.next () at normalizeFile.next () at run.next () at transform.next ()

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Petrus-Han commented 1 year ago

找到原因,taro-lottie好像只支持rn和weapp目前。