Skip to content

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
2 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.

3 participants