Code Monkey home page Code Monkey logo

Comments (6)

vrbagal avatar vrbagal commented on May 20, 2024 1

@citycide
repo :-> https://github.com/vrbagal/Angular-4-Electron-

from trilogy.

haltcase avatar haltcase commented on May 20, 2024

@vrbagal it's possible this is actually because of TypeScript but I'll have to look more into it.

from trilogy.

haltcase avatar haltcase commented on May 20, 2024

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.

haltcase avatar haltcase commented on May 20, 2024

I pushed a fix in e1d57c3 that drops defining module.exports for the .mjs / module build.

Released in v1.2.1

from trilogy.

vrbagal avatar vrbagal commented on May 20, 2024

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.

haltcase avatar haltcase commented on May 20, 2024

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 importing 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.