classmodel / class-web

Web version of CLASS
https://classmodel.github.io/class-web
GNU General Public License v3.0
0 stars 0 forks source link

Other ways to run CLASS #51

Open Peter9192 opened 1 month ago

Peter9192 commented 1 month ago

It would be nice to be able to run the same CLASS code in different ways:

sverhoeven commented 1 month ago

Could also try a slimmed Docker image with https://pnpm.io/docker#example-1-build-a-bundle-in-a-docker-container and https://github.com/slimtoolkit/slim

sverhoeven commented 2 weeks ago

CLI almost works

npx @classmodel/class config.json
Need to install the following packages:
@classmodel/class@0.0.8
Ok to proceed? (y) 

node:internal/modules/esm/assert:88
        throw new ERR_IMPORT_ATTRIBUTE_MISSING(url, 'type', validType);
              ^

TypeError [ERR_IMPORT_ATTRIBUTE_MISSING]: Module "file:///home/verhoes/.npm/_npx/ce43375ca7ce951b/node_modules/@classmodel/class/dist/config.json" needs an import attribute of "type: json"
    at validateAttributes (node:internal/modules/esm/assert:88:15)
    at defaultLoad (node:internal/modules/esm/load:132:3)
    at async ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:479:32) {
  code: 'ERR_IMPORT_ATTRIBUTE_MISSING'
}

Node.js v22.10.0