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

rn端编译报错:Invalid regular expression #5216

Closed
ihet opened this issue Dec 30, 2019 · 4 comments
Closed

rn端编译报错:Invalid regular expression #5216

ihet opened this issue Dec 30, 2019 · 4 comments
Assignees

Comments

@ihet
Copy link

ihet commented Dec 30, 2019

问题描述

新建一个项目,打包rn端报错,bundle目录未生成。只是拉取了模板,什么都没修改。

期望行为

Metro Bundler 打包js

报错信息

Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class

bundle

系统信息

Taro v2.0.0-beta.12

Taro CLI 2.0.0-beta.12 environment info:
System:
OS: Windows 10
Binaries:
Node: 12.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.0 - C:\Users\qxl\AppData\Roaming\npm\npm.CMD

补充信息

facebook/metro#458
猜想可能是此问题导致metro不工作。

@taro-bot
Copy link

taro-bot bot commented Dec 30, 2019

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Dec 30, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Dec 30, 2019

CC @Pines-Cheng

@luckyadam luckyadam removed their assignment Dec 30, 2019
@ihet
Copy link
Author

ihet commented Dec 30, 2019

换到了node 10 ,可以编译了,应该是node的问题。

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

3 participants