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

BACKLOG-22972: Fix fs import #278

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

baptistegrimaud
Copy link
Contributor

@baptistegrimaud baptistegrimaud commented Sep 25, 2024

JIRA

https://jira.jahia.org/browse/BACKLOG-22972

Description

Fix the import (use require instead of import) of the "fs" module, as it causes the following error:

Run yarn jahia-pack
/__w/npm-create-module/npm-create-module/node_modules/@jahia/scripts/pack-utility.js:1
import fs from "fs";
^^^^^^

SyntaxError: Cannot use import statement outside a module

@baptistegrimaud baptistegrimaud marked this pull request as ready for review September 25, 2024 15:43
@baptistegrimaud baptistegrimaud requested a review from a team September 25, 2024 15:47
@baptistegrimaud baptistegrimaud merged commit 84b069e into master Sep 25, 2024
3 checks passed
@baptistegrimaud baptistegrimaud deleted the BACKLOG-22972-fix-import branch September 25, 2024 16:00
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

Successfully merging this pull request may close these issues.

2 participants