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

是需要额外配置什么吗,解析不了 #1

Open
fengshenhai-0727 opened this issue Jun 7, 2023 · 1 comment
Open

是需要额外配置什么吗,解析不了 #1

fengshenhai-0727 opened this issue Jun 7, 2023 · 1 comment

Comments

@fengshenhai-0727
Copy link

ModuleBuildError: Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/fengshenhai/workspace/nutui-react/node_modules/taro-vform/src/index.js: Unexpected token, expected "," (52:6)

50 | return (
51 | <Form

52 | className='v-form'
| ^
53 | onSubmit={handleRef.current.form.submit}
54 | onReset={handleRef.current.form.reset}
55 | >

@fengshenhai-0727 fengshenhai-0727 changed the title 使用配置什么吗 是需要额外配置什么吗,解析不了 Jun 7, 2023
@dpzxsm
Copy link
Owner

dpzxsm commented Jun 8, 2023

看样子,是你把taro-vform 放入nutui-react这个npm包了吗?,这个报错是jsx解析问题,装个jsx的babel插件就能解决 。不过我还是建议taro-vfrom直接装在taro项目里面比较好。最好可以贴下你taro版本和配置
@fengshenhai-0727

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

2 participants