Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

run poi foo.js show the error Module not found: Error: Can't resolve 'loglevel #214

Closed
luxp opened this issue Jul 23, 2017 · 3 comments
Closed

Comments

@luxp
Copy link

luxp commented Jul 23, 2017

Do you want to request a feature or report a bug?
bug

What is the current behavior?
When run boi foo.js, the terminal log this

Module not found: Error: Can't resolve 'loglevel'

If the current behavior is a bug, please provide the steps to reproduce.

  • npm install -g poi
  • create foo.js
  • poi foo.js

What is the expected behavior?

  • start the dev server and compile the js file

Please mention other relevant information such as the browser version, Node.js version, Poi version and Operating System.

  • nodejs@8.1.3
  • poi@9.1.4
@egoist
Copy link
Owner

egoist commented Jul 23, 2017

Ah it's webpack-dev-server bug: webpack/webpack-dev-server#984

They accidentally added loglevel to devDependencies instead of dependencies, for a quick fix: yarn add loglevel --dev in your project

Here's a PR addressing it already: webpack/webpack-dev-server#1001

@luxp
Copy link
Author

luxp commented Jul 23, 2017

I just found out that a minute ago, and solved it with the same way....
Thanks, happy weekend 😄

@egoist
Copy link
Owner

egoist commented Jul 23, 2017

It should be fixed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants