You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of this, Optimizer can't be used right now as both require and import don't work.
How to Reproduce
λ npm i @asyncapi/optimizer
...
λ node
Welcome to Node.js v16.3.0.
Type ".help" for more information.
> const { Optimizer } = require('@asyncapi/optimizer')
Uncaught:
Error: Cannot find module 'C:\Data\scratch\node_modules\@asyncapi\optimizer\lib\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:349:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:562:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:27)
at Function.Module._load (node:internal/modules/cjs/loader:774:27)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at require (node:internal/modules/cjs/helpers:93:18) {
code: 'MODULE_NOT_FOUND',
path: 'C:\\Data\\scratch\\node_modules\\@asyncapi\\optimizer\\package.json',
requestPath: '@asyncapi/optimizer'
}
Same thing for import.
See also the file tree in the node_modules:
Expected behavior
Import and require work
The text was updated successfully, but these errors were encountered:
Describe the bug
The entirety of the
./lib/**
folder is not published to NPM. This should contain the compiled.js
and.d.ts
files.These file are referenced in the
package.json
:Because of this, Optimizer can't be used right now as both
require
andimport
don't work.How to Reproduce
Same thing for
import
.See also the file tree in the node_modules:
Expected behavior
Import and require work
The text was updated successfully, but these errors were encountered: