mljs / levenberg-marquardt

Curve fitting method in JavaScript
MIT License
70 stars 15 forks source link

build fails #49

Closed jrobinso closed 2 years ago

jrobinso commented 2 years ago

npm run build fails with the following error

sh: cheminfo-build: command not found
jrobinso commented 2 years ago

oops my mistake. Closing.

jrobinso commented 2 years ago

It still fails, after npm install, with the following error. Some instructions for building for a browser would be helpful

npm run build

> ml-levenberg-marquardt@4.1.0 build
> cheminfo-build

Building bundle...
Error: Could not resolve entry module (lib-esm/index.js).
    at error (.../levenberg-marquardt/node_modules/rollup/dist/shared/rollup.js:198:30)
    at ModuleLoader.loadEntryModule (.../levenberg-marquardt/node_modules/rollup/dist/shared/rollup.js:22482:20)
    at async Promise.all (index 0) {
  code: 'UNRESOLVED_ENTRY'
}
jobo322 commented 2 years ago

Could you try with npm run tsc before the build script

jrobinso commented 2 years ago

That worked, thanks.