-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Installation problem #1797
Comments
I receive same error in linux installation root@linux-B:/media/DISK3/var/www/wiki.limbersoftware.com.br# node server Error: No valid exports main found for '/media/DISK3/var/www/wiki.limbersoftware.com.br/node_modules/nanoid' |
@Alexandredc @michalcesek @fhiegel @asynder @FelixSFD I encountered the same problem, you folks had. The solution to fix the problem is to upgrade your nodejs to at least 13.12.0 (the details as to why are described in detail here: ai/nanoid#206 ). I upgraded to 13.14.0 and solved the problem with it. |
The docker image runs on Node.js 12.16.2 and it works just fine, so while upgrading might have fixed your issue, the node version is definitely not the cause. |
@Alexandredc are you sure #1787 and this issue are really the same? I just posted my fix here because you linked these two issues saying they are the same. I looked again into both initial error reports and they are different. I think my issue was the one described in #1787. According to @NGPixel comment, I would say these issues are not the same (different error messages). |
These errors occur on Linux, MacOS, Windows. |
@NGPixel that's interesting. Two people in the #1787 confirmed, that a nodejs upgrade fixed the problem for them as well. Which version of nanoid is used in the dockr image? If you dive a bit into ai/nanoid#206, you will also find uuidjs/uuid#428 and aws/aws-cdk#7816. In aws/aws-cdk#7816 they observe their specific import problem only from nodejs version 13.0.0 onwards, which would explain why with nodejs 12.16.2 the problem does not appear. |
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. |
Question
I followed instructions on this page: https://docs.requarks.io/install/windows but when I type command "node server" I receive following error message:
Host Info (please complete the following information):
OS: Windows 10
Wiki.js version: 2.3.77
Database engine: postgres 10.12
Node.js: 12.16.2
The text was updated successfully, but these errors were encountered: