Error resolving module: possibly due to webpack
See original GitHub issueTrying to run this lib from a lambda function within a monorepo. For context, none of the other node modules I have used in this project fail to load.
{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module '@typedorm/core/public-api'",
"stack": [
"Runtime.ImportModuleError: Error: Cannot find module '@typedorm/core/public-api'",
" at _loadUserApp (/var/runtime/UserFunction.js:202:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:242:17)",
" at Object.<anonymous> (/var/runtime/index.js:43:30)",
" at Module._compile (internal/modules/cjs/loader.js:1085:14)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)",
" at Module.load (internal/modules/cjs/loader.js:950:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:790:12)",
" at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)",
" at internal/main/run_main_module.js:17:47"
]
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Webpack suddenly fails to compile due to "Module not found ...
It's an issue with the Webpack or Jest configuration. Absolute and relative paths can both be used, but be aware that they will...
Read more >How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >REACT 18 + WEBPACK 5: Compiling Errors · Issue #3418
BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified (probably because the origin is ...
Read more >Webpack 5 release (2020-10-10)
The external module is an async module and the resolved value is used as module exports. import : Native import() is used to...
Read more >ts-loader - npm
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); module.exports = { ... resolve: { plugins: [new ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @whimzyLive I gave up in the end and bundled with
esbuild
, explicitly excluding typedormClosing this as a duplicate to #220 . Please feel free to reopen, if the workaround suggested above does not work for you.