Replies: 6 comments 4 replies
-
I tried updating Node.js and the error went away |
Beta Was this translation helpful? Give feedback.
-
still same issue please help |
Beta Was this translation helpful? Give feedback.
-
I had the same problem, but found I had a composer.json file in the parent folder of my project that was overriding the local file. Once I removed that, I had no issues. |
Beta Was this translation helpful? Give feedback.
-
By updating the node version, The issue is resolved. |
Beta Was this translation helpful? Give feedback.
-
My Node.js version when i run node -v returns v.18.20.6 but when i use vite to create a react app I keep getting this `SyntaxError: The requested module 'node:fs/promises' does not provide an export named 'constants' Node.js v17.7.1` which indicates i have Node.js v17.71 I've tried uninstalling node and reinstalling, switch to node 18 and uninstalling and reinstalling nvm as well. But i keep getting the same error. Please help |
Beta Was this translation helpful? Give feedback.
-
We had Node |
Beta Was this translation helpful? Give feedback.
-
import fsp, { constants as constants$9 } from 'node:fs/promises';
^^^^^^^^^
SyntaxError: The requested module 'node:fs/promises' does not provide an export named 'constants'
Beta Was this translation helpful? Give feedback.
All reactions