yarn dev in create-react-app-5 sample project fails with uncaught exception
teuber789 opened this issue · comments
Joseph Cotton commented
Before you start - checklist
- I followed instructions in documentation written for my React-PDF version
- I have checked if this bug is not already reported
- I have checked if an issue is not listed in Known issues
- If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
The "create-react-app-5" sample project fails with an uncaught exception whenever running yarn dev
.
$ yarn dev
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[Object: null prototype] {
[Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]
}
Node.js v18.20.2
Steps to reproduce
- Open a terminal and run the following:
# Start with a fresh copy of the repo
$ git clone git@github.com:wojtekmaj/react-pdf.git
$ cd react-pdf/sample/create-react-app-5
# Install
$ yarn install
# Run for local development
$ $ yarn dev
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[Object: null prototype] {
[Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]
}
Node.js v18.20.2
Expected behavior
The project should build and run on the local development server
Actual behavior
It fails with the following error:
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[Object: null prototype] {
[Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]
}
Node.js v18.20.2
Additional information
Environment
- Chrome: Version 124.0.6367.93 (Official Build) (x86_64)
- react-pdf: 7.7.1
- react: 18.2.0
- Node: 18.20.2
- Yarn: 4.1.1
- python: 3.12.3
- MacOS: Sonoma 14.4.1 (intel)
Wojciech Maj commented
You're right! ts-node is a load of crap. Replaced it with much more reliable tsimp. Thanks!