Skip to content
New issue

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

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

Closed
Petrus-Han opened this issue May 18, 2023 · 1 comment
Closed

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

Petrus-Han opened this issue May 18, 2023 · 1 comment

Comments

@Petrus-Han
Copy link

✖ 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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant