kolint / next

Modern toolchain for enhancing usage of Knockout.js
https://kolint.github.io/next/
MIT License
1 stars 1 forks source link

@kolint/check package does not work - crashes with ERR_MODULE_NOT_FOUND #8

Closed ondrejmirtes closed 7 months ago

ondrejmirtes commented 7 months ago

I'm trying to run it the same way as the old one:

$ ./node_modules/.bin/kolint -c .kolint.js 'frontend/**/*.html'
node:internal/modules/esm/resolve:263
    throw new ERR_MODULE_NOT_FOUND(
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/ondrej/Development/phpstan-fixer/node_modules/@kolint/compiler/src/index.ts' imported from /Users/ondrej/Development/phpstan-fixer/node_modules/@kolint/check/chunk-FNHAGXHA.js
    at finalizeResolution (node:internal/modules/esm/resolve:263:11)
    at moduleResolve (node:internal/modules/esm/resolve:908:10)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/ondrej/Development/phpstan-fixer/node_modules/@kolint/compiler/src/index.ts'
}

Node.js v21.5.0
tscpp commented 7 months ago

This is because the initial release of the packages we're tagged with "latest", but the new release is tagged with "beta". I don't really know why this happened. Make sure you have the latest "beta" version installed.

npm i -D @kolint/check@beta
ondrejmirtes commented 7 months ago

In that version the tool doesn't output anything and returns exit code 0. Even if I do some obvious mistake in a file it still doesn't output anything and exits with 0.

tscpp commented 7 months ago

@ondrejmirtes See #9