Comments (6)
@citycide
repo :-> https://github.com/vrbagal/Angular-4-Electron-
from trilogy.
@vrbagal it's possible this is actually because of TypeScript but I'll have to look more into it.
from trilogy.
Also, if you have time it'd help a lot if you push up a repo I can pull down to test this out.
from trilogy.
I pushed a fix in e1d57c3 that drops defining module.exports
for the .mjs
/ module build.
Released in v1.2.1
from trilogy.
Could you please add code snip to import and use it with typescript, I am not able to get it running with this repo
from trilogy.
Hmm. Original issue's fixed but it looks like there's a new one ( or two ). I've been trying to track them down but it's pretty easy to get tangled in webpack's webs...
using sql.js
__webpack_require__.i(...) is not a function
I'm not well versed in webpack's innards but this seems like a webpack issue. That API isn't working for some reason. I guess it could be the fact that node's path
( which is what's being replaced by webpack's require above ) isn't an ES module so import
ing while in an .mjs
module could potentially be the issue? 🤷♂️
using sqlite3
This one I know more about than the above:
Cannot read property 'create' of undefined
... which I traced through knex into its usage of generic-pool
. The problem is that we have this tree:
$ npm ls generic-pool
[email protected] C:\......\Angular-4-Electron-
`-- [email protected]
+-- [email protected]
`-- [email protected]
`-- [email protected]
generic-pool
v3.0.0 ( which trilogy itself uses ) had a breaking change to its Pool
constructor's signature. For whatever reason webpack is giving knex [email protected]
when it should be getting its own [email protected]
dependency. That seems pretty jacked to me. We'll probably have to open an upstream issue with webpack.
from trilogy.
Related Issues (20)
- Angular9 compilation error HOT 6
- 3.0.0 HOT 4
- BulkInsert HOT 4
- potential security vulnerability in latest stable release 2.0.2 HOT 4
- Password Protect the SQLite database HOT 1
- Discussions are now open
- sqlite error: no such table: tablename_returning_temp HOT 7
- Issues creating and locating a database in a React application HOT 2
- Cannot find module 'sql.js/module' HOT 3
- timestamps don't create HOT 4
- Cannot update with timestamps set to true HOT 1
- Update dependencies and release new version HOT 2
- Preload memory database content
- Awesome Electron HOT 1
- Electron Vue Project - Error: Failed to compile HOT 1
- TypeError: SQL.Database is not a constructor HOT 7
- sqljs usage changes HOT 2
- Issue while using with angular 8 and electron HOT 2
- Can find accecpts Array? HOT 2
- Knex: run$ npm install sqlite3 --saveCannot find module HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trilogy.