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

Unable to start wiki-js 2.3.77 on Mac OS #1787

Closed
fhiegel opened this issue Apr 26, 2020 · 6 comments
Closed

Unable to start wiki-js 2.3.77 on Mac OS #1787

fhiegel opened this issue Apr 26, 2020 · 6 comments
Assignees

Comments

@fhiegel
Copy link

fhiegel commented Apr 26, 2020

Describe the bug
After upgrading from 2.2.51, i get the following error from 2.3.77 :

internal/modules/cjs/loader.js:614
  throw e;
  ^

Error: No valid exports main found for '~/wiki-js-v2.3.77/node_modules/nanoid'
    at resolveExportsTarget (internal/modules/cjs/loader.js:611:9)
    at applyExports (internal/modules/cjs/loader.js:492:14)
    at resolveExports (internal/modules/cjs/loader.js:541:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:643:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:941:27)
    at Function.Module._load (internal/modules/cjs/loader.js:847:27)
    at Module.require (internal/modules/cjs/loader.js:1016:19)
    at require (internal/modules/cjs/helpers.js:69:18)
    at Object.<anonymous> (~/wiki-js-v2.3.77/server/index.js:7:20)
    at Module._compile (internal/modules/cjs/loader.js:1121:30) {
  code: 'MODULE_NOT_FOUND'
}

To Reproduce
Steps to reproduce the behavior:

  1. Dowload wiki-js 2.3.77
  2. Go into wiki-js folder
  3. run server with 'node server'
  4. See error

Expected behavior
Server whould start properly

Host Info (please complete the following information):

  • OS: MacOS Darwin (darwin) 16.7.0 x64
  • Wiki.js version: 2.3.77
  • Database engine: 12.2
  • NodeJS : 13.2.0

Additional context
Thank for your great job here.

@asnyder
Copy link

asnyder commented Apr 26, 2020

Same issue here on AWS Linux 2. Created a screencast for this, but fhiegel summed it up perfectly!!

@FelixSFD
Copy link

Same here, but on Ubuntu 18.04:

internal/modules/cjs/loader.js:621
  throw e;
  ^

Error: No valid exports main found for '/var/wikijs2/node_modules/nanoid'
    at resolveExportsTarget (internal/modules/cjs/loader.js:618:9)
    at applyExports (internal/modules/cjs/loader.js:499:14)
    at resolveExports (internal/modules/cjs/loader.js:548:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:650:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:948:27)
    at Function.Module._load (internal/modules/cjs/loader.js:854:27)
    at Module.require (internal/modules/cjs/loader.js:1023:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/var/wikijs2/server/index.js:7:20)
    at Module._compile (internal/modules/cjs/loader.js:1128:30) {
  code: 'MODULE_NOT_FOUND'
}

@AlexandreDeCarli
Copy link

same as #1797

@fhiegel
Copy link
Author

fhiegel commented May 1, 2020

Works perfectly after updating node from v13.2.0 to v14.1.0.
Thanks @sray for comment in #1797.

@asnyder
Copy link

asnyder commented May 8, 2020

This is now working for me on the latest version 2.3.81 after updating NodeJS to node v14.2.0 (npm v6.14.4).

@NGPixel
Copy link
Member

NGPixel commented Jun 2, 2020

Added a note in the docs about Node.js 13.0 to 13.2 not being supported because of the ESM bug.

On another note, the 13.x release has reached its end-of-life and is no longer supported anyway.

@NGPixel NGPixel closed this as completed Jun 2, 2020
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

5 participants