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

issue when installing through NPM #42

Closed
grantglidewell opened this issue Jun 14, 2018 · 3 comments
Closed

issue when installing through NPM #42

grantglidewell opened this issue Jun 14, 2018 · 3 comments

Comments

@grantglidewell
Copy link

Bug Report

When installed through NPM the script refuses to run, reporting that its unable to find a webpack module. When installing through Yarn it works as described in the docs

To Reproduce

  1. run 'npm i -D docx' in project directory
  2. add 'docz dev' script to package.json
  3. run dev script
  4. see glorious broken output
module.js:549
    throw err;
    ^

Error: Cannot find module 'webpack/schemas/WebpackOptions.json'

Expected behavior

NPM and Yarn should behave the same

Enviroment

  • OS: OSX 10.13.4
  • Node/npm version: npm 6.1.0
@Swapnull
Copy link
Contributor

I have just tried creating a project and followed your steps and it seems to work fine. See Below.

Are you doing this on an existing or empty project? Do you have any further setup in terms of doczrc.js files or anything?

screen shot 2018-06-14 at 20 17 28

@grantglidewell
Copy link
Author

I used existing projects and created a fresh project to test this before making the issue. it's possible that it comes down to something strange in my local environment. I can check on another machine entirely, and will create another issue with more detail if it's something I can reproduce without that possibility.

@edwilliams
Copy link

edwilliams commented Jun 20, 2018

having same issue installing with npm (following @grantglidewell's steps above with existing project)

module.js:540
    throw err;
    ^

Error: Cannot find module 'webpack/schemas/WebpackOptions.json'

[EDIT] fixed - #56

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

3 participants