-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error importing module #82
Comments
Oh, we’ve developed under Node 15. It’s not compatible with older versions, at least for now. Any chance you could try Node 15? |
Huh, i will try to update my project to node 15 first. Thank you for answer! |
Thank you for forcing me to update the project to the latest node :) It is working now :) |
I had the same issue, and upgrading to node 16 didn't help. For others with this issue: |
Yeah for now we only provide ESM modules. And since April 30, every LTS version of node has ESM support. |
Hi,
I am not sure if this is related to hocuspucus server, or to my config, but when i followed tutorial, i am not able to run my server, because of the added import.
I am receiving the following error:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: .../node_modules/@hocuspocus/server/dist/hocuspocus-server.js
require() of ES modules is not supported.
I am using Babel for build..
Update:
I found that this issue is related to the node version:
manuelbieh/geolib#208
After switching to node version 12.12.0, now i got error from your module:
import WebSocket from 'ws';
^^^^^^
SyntaxError: Cannot use import statement outside a module
....
....
The text was updated successfully, but these errors were encountered: