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

新建项目,报Module not found: Error: Can't resolve 'octoParse' #60

Closed
Maodaria opened this issue Dec 5, 2018 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@Maodaria
Copy link

Maodaria commented Dec 5, 2018

仅新建项目,运行npm run dev:wechat

就会有

ERROR in ./node_modules/@megalo/vhtml-plugin/index.js
Module not found: Error: Can't resolve 'octoParse' in '/home/lujian/wechatproj/genchain.wechat.todo/node_modules/@megalo/vhtml-plugin'
@ ./node_modules/@megalo/vhtml-plugin/index.js 3:16-36
@ ./src/app.js

错误提示。

@fengzilong fengzilong added the bug Something isn't working label Dec 5, 2018
@Airkro
Copy link

Airkro commented Dec 7, 2018

这种问题在任何项目都是很常见的。
凡是遇到 Module not found: Error: Can't resolve 'xxx' in xxx 的问题,请先自行排查 npm 或 yarn 各个依赖项的安装是否成功。

可以通过 npm install --force 或者 yarn --force 执行重新安装试试能否成功。
或者删除 yarn.lock 或 package-lock.json 文件后执行重新安装。
通常能解决大部分的问题。

@isunkui
Copy link

isunkui commented Dec 9, 2018

手动定位到出错的文件里: ./node_modules/@megalo/vhtml-plugin/index.js
const octoParse = require('octoParse').default
修改成 const octoParse = require('octoparse').default 就可以解决了。

@elcarim5efil
Copy link
Member

请更新一下插件,最新发布修复了这些问题

@megalo/vhtml-plugin@0.1.1

octoparse@0.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants