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

例子运行失败 #82

Open
houta-higuchi opened this issue Dec 5, 2020 · 4 comments
Open

例子运行失败 #82

houta-higuchi opened this issue Dec 5, 2020 · 4 comments

Comments

@houta-higuchi
Copy link

运行alita --dev 后,生成小程序,微信开发者工具打开后报错

页面【npm/@areslabs/wx-react-native/wxComponents/WXFlatList/index]错误:
 Error: module "npm/@areslabs/wx-react-native/wxComponents/WXFlatList/index.js" is not defined
    at require (VM40 WAService.js:2)
    at <anonymous>:90:9
    at doWhenAllScriptLoaded (appservice?t=1607136085637:2593)
    at HTMLScriptElement.scriptLoaded (appservice?t=1607136085637:2613)
    at HTMLScriptElement.script.onload (appservice?t=1607136085637:2621)
@guo-haozhong
Copy link

The same error to me.But no people slove it?

@ZhaoZhongYi
Copy link

您执行alita可以转化成功吗?有遇到过下面的报错吗
app@bogon HelloWorldRN % alita
配置文件路径: /Users/app/Downloads/HelloWorldRN/alita.config.js
入口文件:/Users/app/Downloads/HelloWorldRN/src/index.js
输出目录: /Users/app/Downloads/HelloWorldRN/wx-dist
开始处理:/src/index.js ...
处理完成:/src/index.js
./src/index.js
Module build failed (from ./node_modules/@areslabs/alita-core/node_modules/babel-loader/lib/index.js):
TypeError: /Users/app/Downloads/HelloWorldRN/src/index.js: pass.get(...) is not a function
at Object.post (/Users/app/Downloads/HelloWorldRN/node_modules/@areslabs/babel-plugin-alitamisc/dist/index.js:101:47)
at buildElementCall (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/helper-builder-react-jsx/lib/index.js:167:12)
at PluginPass.exit (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/helper-builder-react-jsx/lib/index.js:53:24)
at newFn (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/visitors.js:177:21)
at NodePath._call (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/path/context.js:53:20)
at NodePath.call (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/path/context.js:109:8)
at TraversalContext.visitQueue (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/context.js:105:16)
at TraversalContext.visitMultiple (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/context.js:74:17)
at TraversalContext.visit (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/context.js:131:19)
at traverseNode (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/traverse-node.js:24:17)
at NodePath.visit (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/path/context.js:107:52)
at TraversalContext.visitQueue (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/context.js:105:16)
at TraversalContext.visitMultiple (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/context.js:74:17)
at TraversalContext.visit (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/context.js:131:19)
at traverseNode (/Users/app/Downloads/HelloWorldRN/node_modules/@babel/traverse/lib/traverse-node.js:24:17)

@yuxizhe
Copy link

yuxizhe commented Dec 4, 2022

Any update?

@Jeijie
Copy link

Jeijie commented Jun 14, 2024

我新建一个react native 工程,执行alita --dev转化,也是报这个错,有人知道怎么解决吗

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

5 participants