jhipster / jhipster-lite

JHipster Lite ⚡ is a development platform to generate, develop & deploy modern web applications & microservices architecture, step by step - using Hexagonal Architecture :gem:

Home Page:https://www.jhipster.tech/jhipster-lite/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ES warning when releasing

pascalgrimaud opened this issue · comments

Here the stacktrace:

*** put back old settings.xml
*** version: add SNAPSHOT
*** git: commit, push to main...
v1.4.1-SNAPSHOT
ReferenceError: module is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/pgrimaud/projects/jhipster/jhipster-lite/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at file:///home/pgrimaud/projects/jhipster/jhipster-lite/src/main/resources/generator/prettier/.lintstagedrc.js:1:1
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadConfigByExt (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/loadConfig.js:86:13)
    at async loadConfig (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/loadConfig.js:102:16)
    at async Promise.all (index 5)
    at async searchConfigs (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/searchConfigs.js:90:3)
    at async runAll (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/runAll.js:136:24)
    at async lintStaged (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/index.js:110:17)
    at async file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/bin/lint-staged.js:146:18
ReferenceError: module is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/pgrimaud/projects/jhipster/jhipster-lite/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at file:///home/pgrimaud/projects/jhipster/jhipster-lite/src/test/resources/generator/common/.lintstagedrc.js:1:1
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadConfigByExt (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/loadConfig.js:86:13)
    at async loadConfig (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/loadConfig.js:102:16)
    at async Promise.all (index 6)
    at async searchConfigs (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/searchConfigs.js:90:3)
    at async runAll (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/runAll.js:136:24)
    at async lintStaged (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/index.js:110:17)
    at async file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/bin/lint-staged.js:146:18
ReferenceError: module is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/pgrimaud/projects/jhipster/jhipster-lite/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at file:///home/pgrimaud/projects/jhipster/jhipster-lite/src/test/resources/projects/init/.lintstagedrc.js:1:1
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadConfigByExt (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/loadConfig.js:86:13)
    at async loadConfig (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/loadConfig.js:102:16)
    at async Promise.all (index 11)
    at async searchConfigs (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/searchConfigs.js:90:3)
    at async runAll (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/runAll.js:136:24)
    at async lintStaged (file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/lib/index.js:110:17)
    at async file:///home/pgrimaud/projects/jhipster/jhipster-lite/node_modules/lint-staged/bin/lint-staged.js:146:18
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
[main 1a3661551] Update to next version v1.4.1-SNAPSHOT