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
Building typeorm with webpack: Module not found (error for aws-sdk, warning for every other db) #3454
Comments
I need some webpack expert here.
Why it tries to load every |
The same problem. |
got the same problem |
Minimum steps to reproduce
|
This example by @rohmanhm uses Update: I spent some time trying this approach out, and well, it seems to work. It means you basically add another layer and have to define everything twice and hope it somehow works. At least it compiles, but it also caused me some problems while building the app for production. For now I will have to continue setting |
This error does only happen with Electron 4.x for me. Switching to Electron 3.1.x works fine. I tried setting |
Can you post how you got it running with 3.1.x? I tried downgrading to a lower version than 4 but the same issue persists for me. |
@Shin-- I just realized that my issue was not caused by Webpack and is not related to this issue. But for reference, here is my setup:
|
This comment has been minimized.
This comment has been minimized.
@timoschwarzer well what was the issue, then? |
Should be fixed more or less with the latest release |
Can confirm! Thanks @imnotjames |
Issue type:
[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[x]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)When building my project, the build fails because of missing
aws-sdk
but also shows warnings for every other option. I want to usesqlite3
.The error happens as soon as I import
createConnection
and call it. I am currently using this boilerplate but have the same issue with others too. Theelectron
example compiles well and without problems.How to reproduce:
"sqlite3": "^4.0.6", "typeorm": "^0.2.12-rc.2"
or"typeorm": "^0.2.11"
to package.jsonormconfig.json
as shown in https://github.com/typeorm/electron-typescript-example and import and callcreateConnection
fromtypeorm
(I imported and called it in my main.js/main.production.js withinonready
of theelectron
window/app)The text was updated successfully, but these errors were encountered: