Open Peter9192 opened 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
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
It would be nice to be able to run the same CLASS code in different ways:
config.json
file as a command-line argument