VITE v5.2.8 ready in 2099 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
✘ [ERROR] Could not read from file: /home/projects/hnzcsb--run/src/components/lib/inputtext/InputText
node_modules/primereact/inputotp/inputotp.esm.js:6:26:
6 │ import { InputText } from '@/components/lib/inputtext/InputText';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: Build failed with 1 error:
node_modules/primereact/inputotp/inputotp.esm.js:6:26: ERROR: Could not read from file: /home/projects/hnzcsb--run/src/components/lib/inputtext/InputText
at failureErrorWithLog (/home/projects/hnzcsb--run/node_modules/esbuild/lib/main.js:1641:15)
at eval (/home/projects/hnzcsb--run/node_modules/esbuild/lib/main.js:1049:25)
at eval (/home/projects/hnzcsb--run/node_modules/esbuild/lib/main.js:1517:9) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
Describe the bug
Reproducer
https://stackblitz.com/edit/ym3pmp?file=src%2FApp.jsx
PrimeReact version
10.6.3
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Dependencies:
Expected behavior
Importing and using the component should not cause this error on Vite.