liquidcarrot / carrot

🥕 Evolutionary Neural Networks in JavaScript
https://liquidcarrot.io/carrot/
MIT License
296 stars 34 forks source link

Not packaged properly for npm #275

Open KTibow opened 1 year ago

KTibow commented 1 year ago

Description

No matter what I try I get an error when importing this package.

Screenshots

> require('@liquid-carrot/carrot').architect
Uncaught Error: Cannot find module './architecture/network'
Require stack:
- /home/kendell/Documents/Projects/evolution/node_modules/@liquid-carrot/carrot/dist/index.min.js
- <repl>
    at Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
    at Module._load (node:internal/modules/cjs/loader:872:27)
    at Module.require (node:internal/modules/cjs/loader:1092:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at /home/kendell/Documents/Projects/evolution/node_modules/@liquid-carrot/carrot/dist/index.min.js:1:166451 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/kendell/Documents/Projects/evolution/node_modules/@liquid-carrot/carrot/dist/index.min.js',
    '<repl>'
  ]
}

Files

n/a

To Reproduce

install the package then import the package

Tasks

change how this is packaged probably

Bobingstern commented 1 year ago

I had a similar error. Try installing the version right before the one causing the error. This sort of fixed the issue but I just ended up using Neataptic instead

KTibow commented 1 year ago

i also ended up using neataptic