Comments (2)
sbt-dev-2:hippy-vue-demo sbt$ npm run hippy:build
[email protected] hippy:build /Users/sbt/Desktop/Hippy/examples/hippy-vue-demo
webpack --config ./scripts/hippy-webpack.ios.js --config ./scripts/hippy-webpack.android.jsModuleNotFoundError: Module not found: Error: Can't resolve 'vue' in '/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/src'
at factory.create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/webpack/lib/Compilation.js:925:10)
at factory (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/webpack/lib/NormalModuleFactory.js:401:22)
at resolver (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/webpack/lib/NormalModuleFactory.js:130:21)
at asyncLib.parallel (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/webpack/lib/NormalModuleFactory.js:224:22)
at /Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/neo-async/async.js:2830:7
at /Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/neo-async/async.js:6877:13
at normalResolver.resolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/webpack/lib/NormalModuleFactory.js:214:25)
at doResolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:213:14)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
at resolver.doResolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1)
at resolver.doResolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :657:1)
at resolver.doResolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/AliasPlugin.js:67:43)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
at resolver.doResolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1)
at resolver.doResolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn43 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :16:1)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1)
at resolver.doResolve (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn1 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :16:1)
at hook.callAsync (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/enhanced-resolve/lib/Resolver.js:285:5)
at _fn0 (eval at create (/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
resolve 'vue' in '/Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/src'
Parsed request is a module
using description file: /Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/package.json (relative path: ./src)
aliased with mapping 'vue': '/Users/sbt/Desktop/Hippy/packages/hippy-vue' to '/Users/sbt/Desktop/Hippy/packages/hippy-vue'
using description file: /Users/sbt/Desktop/Hippy/examples/hippy-vue-demo/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/sbt/Desktop/Hippy/packages/hippy-vue/package.json (relative path: .)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue is not a file
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue.js doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue.json doesn't exist
as directory
existing directory
use ./dist/index.js from main in package.json
using description file: /Users/sbt/Desktop/Hippy/packages/hippy-vue/package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/sbt/Desktop/Hippy/packages/hippy-vue/package.json (relative path: ./dist/index.js)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/dist/index.js doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/dist/index.js.js doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/dist/index.js.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/dist/index.js.json doesn't exist
as directory
/Users/sbt/Desktop/Hippy/packages/hippy-vue/dist/index.js doesn't exist
using path: /Users/sbt/Desktop/Hippy/packages/hippy-vue/index
using description file: /Users/sbt/Desktop/Hippy/packages/hippy-vue/package.json (relative path: ./index)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/index doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/index.js doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/index.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/sbt/Desktop/Hippy/packages/hippy-vue/index.json doesn't exist
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] hippy:build:webpack --config ./scripts/hippy-webpack.ios.js --config ./scripts/hippy-webpack.android.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] hippy:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sbt/.npm/_logs/2020-01-01T03_02_18_508Z-debug.log
scripts下的所有 alias 全部替换成node_modules路径。某些情况下,alias确实找不到,写成../node_modules就能正确找到了。
from hippy.
alias 只是为了保持用到最新的 sdk,方便测试一些未发布的新特性,在 Hippy 目录下运行 npm run build
编译一下 sdk 就行了。
实在不行把 alias 删了也行啊,何必重定向。
from hippy.
Related Issues (20)
- Animation模块repeatCount为0时,调用start后,如果想再次执行此动画如何操作? HOT 2
- View组件的style嵌套text样式会导致崩溃 HOT 2
- 现在有计划支持 harmony 系统吗?
- _pas_large_expendable_memory_allocate 崩溃 HOT 2
- Android router中和BackAndroid中对back键监听的疑问 HOT 1
- AnimationSetOption缺失virtual字段导致编译失败 HOT 2
- 多jsbundle打开子页面如何传参? HOT 2
- support Vite HOT 3
- 请求优化 HOT 2
- 关于Android系统TextInput的问题 HOT 2
- hippy-vue ul li 渲染listView li 重叠问题 HOT 2
- 拉不到tdf依赖 HOT 2
- 看了文档好久也没看明白开发阶段如何边写边预览呢? HOT 2
- crash HOT 3
- 会支持harmony系统吗? HOT 3
- [HippyJSCExecutor executeApplicationScript:sourceURL:isCommonBundle:onComplete:]_block_invoke (HippyJSCExecutor.mm:773) HOT 2
- iOS Hippy 2.17.2 HPOPAnimator Crash HOT 3
- hippy-vue-next-demo项目启动报错 HOT 2
- 步骤太乱了 HOT 2
- hippy-vue-next-demo 启动web renderer问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hippy.