The Wayback Machine - https://web.archive.org/web/20200705181412/https://github.com/mobxjs/mobx-react/issues/831
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

Latest package.json main points to unexisting file #831

Closed
enzobrands opened this issue Feb 6, 2020 · 3 comments
Closed

Latest package.json main points to unexisting file #831

enzobrands opened this issue Feb 6, 2020 · 3 comments

Comments

@enzobrands
Copy link

@enzobrands enzobrands commented Feb 6, 2020

Hi,

The latest update to this package causes importing to fail.

npm install mobx-react
echo "require('mobx-react')" > test.js
node test.js

Error: Cannot find module '/.../node_modules/mobx-react/dist/mobxreact.js'. Please verify that 
    the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:294:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:525:18)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:781:27)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/../test.js:1:18)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32) {
  code: 'MODULE_NOT_FOUND',
  path: '/.../node_modules/mobx-react/package.json',
  requestPath: 'mobx-react'

Seems the file main points to is not present anymore

Greets

Enzo

@FredyC
Copy link
Contributor

@FredyC FredyC commented Feb 6, 2020

Fixed with 6.1.7 ... you people are so fast checking out new releases 😮

@FredyC FredyC closed this Feb 6, 2020
@baohx2000
Copy link

@baohx2000 baohx2000 commented Feb 7, 2020

Thanks for quick turnaround! Fast checking (for me anyway) came from using npx with packages that don't have lock files 🤦‍♂️

@lock
Copy link

@lock lock bot commented Apr 15, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.