You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the postinstall task (react-flagpack), I get this error:
> [email protected] postinstall
> react-flagpack
file:///Users/mark/Code/console-ui/node_modules/react-flagpack/cli/flagpack.js:3
import { copy } from 'fs-extra'
^^^^
SyntaxError: Named export 'copy' not found. The requested module 'fs-extra' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'fs-extra';
const { copy } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
Node.js v20.15.0
npm error code 1
npm error path /Users/mark/Code/console-ui
npm error command failed
npm error command sh -c react-flagpack
Steps to Reproduce
add "postinstall": "react-flagpack" to package.json scripts
add "react-flagpack": "^2.0.4" to package.json dependencies
run npm i
Your Environment
Mac OS
Node 20
npm 10.7.0
turbo monorepo
The text was updated successfully, but these errors were encountered:
Please check all that apply
Expected Behavior
"postinstall": "react-flagpack" succeeds
Current Behavior
When running the postinstall task (react-flagpack), I get this error:
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: