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

Fixes destructure of fs-extra #1279

Merged
merged 1 commit into from Jul 26, 2022
Merged

Fixes destructure of fs-extra #1279

merged 1 commit into from Jul 26, 2022

Conversation

scalvert
Copy link
Contributor

Fixes issue with destructuring CJS module in ESM.

SyntaxError: Named export 'symlinkSync' 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 { symlinkSync, mkdirpSync } = pkg;

@scalvert scalvert added the bug Something isn't working label Jul 26, 2022
@scalvert scalvert merged commit 3fd1834 into main Jul 26, 2022
@scalvert scalvert deleted the fix-fs-extra branch July 26, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant