-
-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.6.2] TypeError: Unable to require file #954
Comments
@backbone87 This looks way too complicated for us to reproduce locally; can you pare down your example to a minimal reproducible example? For example, you refer to |
Same as #876 ? |
Closing as it still needs additional info and is likely a duplicate of other, more detailed tickets. |
Having the same issue. |
2023, any news? |
After updating from 8.3.0 to 8.6.2 i started getting the following error, when executing typeorm's CLI script via:
(node:12-alpine; not specific to the migration:generate command, all CLI operations that load entities fail, setup derived from https://typeorm.io/#/using-cli/if-entities-files-are-in-typescript)
playing around with different versions of ts-node i found that this error started occuring on 8.4.1, but the changes there made no sense for me so i tried out all 8.x versions: (Y = works, N = errors)
the concrete error message is:
and for non-working versions before 8.6.0 the error message was:
(
/app/src/platform/PlatformTools.ts:137:28
is not a file in my src dir. it is a typeorm file, which probably gets reported in a wrong location due to the source maps included in typeorm. the actual file is at/app/node_modules/typeorm/platform/PlatformTools.js
<- js)running with TS_NODE_DEBUG shows the file being compiled on all non-working versions before crash is
device.ts
(the first entity file being loaded):(on working versions the exact same compilation works)
i tried to check the changes from 8.0.1 -> 8.0.2 (stopped working), 8.1.1 -> 8.2.0 (started working again) and 8.4.0 -> 8.4.1 (stopped working again), but couldnt really correlate how these changes would affect the problem at hand.
what is even more strange, is that, when just running my app container, everything works fine. the command which is run inside the container:
running
tsc
(orttsc
) on the projects passes without any error or warning.tsconfig.json
any ideas?
ref: #797
The text was updated successfully, but these errors were encountered: