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
I followed the getting started followed by Migrate from ESLint and Prettier so the steps are :
npm install --save-dev --save-exact @biomejs/biome
npx @biomejs/biome init
npx @biomejs/biome migrate prettier --write
npx @biomejs/biome migrate eslint --write
on that last command I get
PS D:\Dev\tktm\packages\frontend> npx @biomejs/biome migrate eslint --write
migrate ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Migration has encountered an error: `node` was invoked to resolve 'eslint-config-next'. This invocation failed with the following error:
D:\Dev\tktm\packages\frontend\node_modules\@rushstack\eslint-patch\lib\_patch-base.js:167
throw new Error('Failed to patch ESLint because the calling module was not recognized.\n' +
^
Error: Failed to patch ESLint because the calling module was not recognized.
If you are using a newer ESLint version that may be unsupported, please create a GitHub issue:
https://github.com/microsoft/rushstack/issues
at Object.<anonymous> (D:\Dev\tktm\packages\frontend\node_modules\@rushstack\eslint-patch\lib\_patch-base.js:167:19)
at Module._compile (node:internal/modules/cjs/loader:1739:14)
Error: Failed to patch ESLint because the calling module was not recognized.
If you are using a newer ESLint version that may be unsupported, please create a GitHub issue:
https://github.com/microsoft/rushstack/issues
at Object.<anonymous> (D:\Dev\tktm\packages\frontend\node_modules\@rushstack\eslint-patch\lib\_patch-base.js:167:19)
at Module._compile (node:internal/modules/cjs/loader:1739:14)
If you are using a newer ESLint version that may be unsupported, please create a GitHub issue:
https://github.com/microsoft/rushstack/issues
at Object.<anonymous> (D:\Dev\tktm\packages\frontend\node_modules\@rushstack\eslint-patch\lib\_patch-base.js:167:19)
at Module._compile (node:internal/modules/cjs/loader:1739:14)
https://github.com/microsoft/rushstack/issues
at Object.<anonymous> (D:\Dev\tktm\packages\frontend\node_modules\@rushstack\eslint-patch\lib\_patch-base.js:167:19)
at Module._compile (node:internal/modules/cjs/loader:1739:14)
at Object.<anonymous> (D:\Dev\tktm\packages\frontend\node_modules\@rushstack\eslint-patch\lib\_patch-base.js:167:19)
at Module._compile (node:internal/modules/cjs/loader:1739:14)
at Module._compile (node:internal/modules/cjs/loader:1739:14)
at Object..js (node:internal/modules/cjs/loader:1904:10)
at Module.load (node:internal/modules/cjs/loader:1473:32)
at Function._load (node:internal/modules/cjs/loader:1285:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at Module.require (node:internal/modules/cjs/loader:1495:12)
at require (node:internal/modules/helpers:135:16)
at Object.<anonymous> (D:\Dev\tktm\packages\frontend\node_modules\@rushstack\eslint-patch\lib\modern-module-resolution.js:11:23)
Node.js v23.6.1
migrate ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Migration has encountered an error: The module D cannot be resolved. This is likely an internal error.
No changes to apply to the Biome configuration file.
Hi, the aforementioned issue is similar but it seems there is more in my case. I applied the suggested fix, that is :
1 commenting require('@rushstack/eslint-patch/modern-module-resolution') in node_modules/eslint-config-next/index.js
2 running again npx @biomejs/biome migrate eslint --write
I obtained :
PS D:\Dev\tktm\packages\frontend> npx @biomejs/biome migrate eslint --write
migrate ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Migration has encountered an error: The module D cannot be resolved. This is likely an internal error.
.eslintrc.json has been successfully migrated.
It seems the biome.json is different from before but running npx @biomejs/biome check does not produces the same file as eslint and for example removes all trailing semi-column
Environment information
What happened?
I followed the getting started followed by Migrate from ESLint and Prettier so the steps are :
npm install --save-dev --save-exact @biomejs/biome
npx @biomejs/biome init
npx @biomejs/biome migrate prettier --write
npx @biomejs/biome migrate eslint --write
on that last command I get
My .eslintrc.json is pretty simple
Expected result
I expected npx @biomejs/biome migrate eslint --write to do a flawless migration
Code of Conduct
The text was updated successfully, but these errors were encountered: