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

TypeError: helper.createBabelRegister is not a function #22

Open
yangtuooc opened this issue Sep 20, 2024 · 0 comments
Open

TypeError: helper.createBabelRegister is not a function #22

yangtuooc opened this issue Sep 20, 2024 · 0 comments

Comments

@yangtuooc
Copy link

when building a wechat mini program using taro v4.0.5, I encountered the following error:

TypeError: helper.createBabelRegister is not a function
    at getMockConfigs (/Users/mawenhao/codes/llamazing/clean-slate/node_modules/@tarojs/plugin-mock/src/utils.ts:28:14)
    at getMockApis (/Users/mawenhao/codes/llamazing/clean-slate/node_modules/@tarojs/plugin-mock/src/utils.ts:77:23)
    at Object.createMockMiddleware (/Users/mawenhao/codes/llamazing/clean-slate/node_modules/@tarojs/plugin-mock/src/utils.ts:88:18)
    at Object.fn (/Users/mawenhao/codes/llamazing/clean-slate/node_modules/@tarojs/plugin-mock/src/index.ts:33:11)

this error occurs when running the yarn build:weapp command.

environment:

  • Taro version: 4.0.5
  • Node.js version: v18.20.4
  • Operating System: macOS
@yangtuooc yangtuooc changed the title [Bug] TypeError: helper.createBabelRegister is not a function TypeError: helper.createBabelRegister is not a function Sep 20, 2024
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