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

The requested module 'fs' does not provide an export named 'promises' #6

Closed
jhwheeler opened this issue Sep 19, 2019 · 1 comment
Closed

Comments

@jhwheeler
Copy link

On running npm run build, the following error occurs:

> [email protected] build /Users/alacritas/Projects/Utils/svelte-devtools-master
> $npm_execpath run build:format && rollup -c && $npm_execpath run build:icon


> [email protected] build:format /Users/alacritas/Projects/Utils/svelte-devtools-master
> node --experimental-modules ./scripts/format.mjs

(node:41629) ExperimentalWarning: The ESM module loader is experimental.
file:///Users/alacritas/Projects/Utils/svelte-devtools-master/scripts/format.mjs:5
import { promises as fs } from 'fs'
         ^^^^^^^^
SyntaxError: The requested module 'fs' does not provide an export named 'promises'
    at ModuleJob._instantiate (internal/modules/esm/module_job.js:79:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:format: `node --experimental-modules ./scripts/format.mjs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:format script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/alacritas/.npm/_logs/2019-09-19T22_01_48_720Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `$npm_execpath run build:format && rollup -c && $npm_execpath run build:icon`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/alacritas/.npm/_logs/2019-09-19T22_01_48_757Z-debug.log

It seems to be a quirky syntax issue explained here: nodejs/node#21014

@RedHatter
Copy link
Collaborator

Please use node version 11.14 or above to build.

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

2 participants