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 encountered an issue when running npm run build. The ESLint command is failing with the following error:
It seems like the ESLint command is looking for the ./src, ./test, and ./build folders, but they do not exist in the project structure, causing the linting to fail.
Steps to Reproduce:
Clone the repository.
Run npm install.
Run npm run build.
Suggested Solution:
I suggest downgrading the ESLint version to 8.57.0 as the latest version (8.57.1) is causing this issue.
To resolve the problem, you could either create the missing folders or adjust the ESLint configuration to match the existing project structure. However, downgrading the ESLint version would also avoid this problem.
Steps to downgrade ESLint: (will it work? I am just working on it.)
Run:
npm install eslint@8.57.0 --save-dev
How to reproduce the behavior?
(node:18496) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for C:\Users\hamma\Documents\icloud-photos-sync\app\build\schema.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:219:9)
at defaultGetFormat (node:internal/modules/esm/get_format:245:36)
at defaultLoad (node:internal/modules/esm/load:120:22)
at async nextLoad (node:internal/modules/esm/hooks:748:22)
at async nextLoad (node:internal/modules/esm/hooks:748:22)
at async Hooks.load (node:internal/modules/esm/hooks:385:20)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:199:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Error Code
0
Relevant log output
-
Operating system
Edition Windows 11 Pro Version 23H2 Installed on 5/13/2024 OS build 22631.4602 Experience Windows Feature Experience Pack 1000.22700.1055.0
'git' is not recognized as an internal or external command,
operable program or batch file.
'git' is not recognized as an internal or external command,
operable program or batch file.
✂️ Excellent, Knip found no issues.
(node:16496) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for C:\Users\hamma\Documents\icloud-photos-sync\app\build\schema.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:219:9)
at defaultGetFormat (node:internal/modules/esm/get_format:245:36)
at defaultLoad (node:internal/modules/esm/load:120:22)
at async nextLoad (node:internal/modules/esm/hooks:748:22)
at async nextLoad (node:internal/modules/esm/hooks:748:22)
at async Hooks.load (node:internal/modules/esm/hooks:385:20)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:199:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Describe the issue
Description:
I encountered an issue when running
npm run build
. The ESLint command is failing with the following error:It seems like the ESLint command is looking for the
./src
,./test
, and./build
folders, but they do not exist in the project structure, causing the linting to fail.Steps to Reproduce:
npm install
.npm run build
.Suggested Solution:
I suggest downgrading the ESLint version to 8.57.0 as the latest version (8.57.1) is causing this issue.
To resolve the problem, you could either create the missing folders or adjust the ESLint configuration to match the existing project structure. However, downgrading the ESLint version would also avoid this problem.
Steps to downgrade ESLint: (will it work? I am just working on it.)
How to reproduce the behavior?
(node:18496) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use
node --trace-deprecation ...
to show where the warning was created)TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for C:\Users\hamma\Documents\icloud-photos-sync\app\build\schema.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:219:9)
at defaultGetFormat (node:internal/modules/esm/get_format:245:36)
at defaultLoad (node:internal/modules/esm/load:120:22)
at async nextLoad (node:internal/modules/esm/hooks:748:22)
at async nextLoad (node:internal/modules/esm/hooks:748:22)
at async Hooks.load (node:internal/modules/esm/hooks:385:20)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:199:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Error Code
0
Relevant log output
Operating system
Edition Windows 11 Pro Version 23H2 Installed on 5/13/2024 OS build 22631.4602 Experience Windows Feature Experience Pack 1000.22700.1055.0
Execution environment
node.js
icloud-photos-sync version
0
Checklist
The text was updated successfully, but these errors were encountered: