kubeshop / monokle-cli

CLI for Monokle core validation library
19 stars 3 forks source link

[Bug]: Import error in @monokle/validation #3

Closed bcoughlan closed 1 year ago

bcoughlan commented 1 year ago

Contact Details

No response

What happened?

I was trying out monokle for the first time. I ran npm install --global @monokle/cli, then helm template chart/ | monokle validate - and I got the error:

file:///usr/local/lib/node_modules/@monokle/cli/build/commands/validate.js:1
import { createExtensibleNodeMonokleValidator, processRefs, readConfig, ResourceParser, } from "@monokle/validation";
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module '@monokle/validation' does not provide an export named 'createExtensibleNodeMonokleValidator'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:409:24)
    at async loadESM (node:internal/process/esm_loader:85:5)
    at async handleMainPromise (node:internal/modules/run_main:61:12)

Node.js v18.1.0

Version

1.0.0 (Default)

Relevant log output

Above

Code of Conduct

monojack commented 1 year ago

Hi, @bcoughlan

This has been fixed in the latest version of the CLI (v0.3.3). Please run npm install --global @monokle/cli@latest to update