Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import @botpress/node-svm #225

Open
1 task done
utanapishtim opened this issue Mar 2, 2024 · 1 comment
Open
1 task done

Cannot import @botpress/node-svm #225

utanapishtim opened this issue Mar 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@utanapishtim
Copy link

Make sure the issue is NLU related

  • I confirm that the reported bug concerns the NLU independently of Botpress

Operating system

macOS

Product used

Other

Deploy Option

Sources (NodeJS)

Version

0.0.4

Configuration File

No response

CLI Arguments

npm init -y
npm i -S @botpress/node-svm
echo "const { makeSvm } = require('@botpress/node-svm')" > index.js
node index.js

Environment variables

No response

Description of the bug

importing @botpress/node-svm fails with:

Uncaught:
Error: Cannot find module '/Users/home/scratch/node_modules/@botpress/node-svm/dist/index.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (node:internal/modules/cjs/loader:438:19)
    at Module._findPath (node:internal/modules/cjs/loader:680:18)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18) {
  code: 'MODULE_NOT_FOUND',
  path: '/Users/home/scratch/node_modules/@botpress/node-svm/package.json',
  requestPath: '@botpress/node-svm'
}
@utanapishtim utanapishtim added the bug Something isn't working label Mar 2, 2024
@franklevasseur franklevasseur self-assigned this Mar 24, 2024
@franklevasseur
Copy link
Member

Hey @utanapishtim,

Thanks for letting me know and sorry for the late reply.

I uploaded v0.0.6 which should fix your problem.

Let me know if it worked.

Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants