ovineio / ovine

ovine由于存在设计缺陷不再更新。 新版会在 ovine-next 重写。 https://github.com/ovineio/ovine-next
https://ovine.igroupes.com/
Apache License 2.0
757 stars 122 forks source link

dev:demo 运行报错 #30

Closed hkc452 closed 3 years ago

hkc452 commented 4 years ago

/mnt/d/oode/ovine/packages/core/lib/styled/theme.js Module not found: Can't resolve '@generated/styles/themes' in '/mnt/d/oode/ovine/packages/core/lib/styled' /mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/base.js:434 var themes = cssAssets.map(function (i) { return "" + publicPath + i; }); ^

TypeError: cssAssets.map is not a function at getThemeScript (/mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/base.js:434:28) at getThemeScript (/mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/base.js:363:62) at /mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/plugins/html_hooks_plugin.js:40:11 at Immediate. (/mnt/d/oode/ovine/node_modules/memory-fs/lib/MemoryFileSystem.js:309:4) at processImmediate (internal/timers.js:456:21) error Command failed with exit code 1.

jinmingpang commented 4 years ago

先看下这个吧 开发者指南

yarn dev:demo 这个命令我也没有用过。因为不常用,有问题也没有注意。而且现在项目变大以后,有些命令确实有点繁琐,命令后期这块我要整理一下,入手起来,方便一点。