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

Package seems broken - any guidance available? #14

Open
xavier-taylor opened this issue Aug 6, 2021 · 0 comments
Open

Package seems broken - any guidance available? #14

xavier-taylor opened this issue Aug 6, 2021 · 0 comments

Comments

@xavier-taylor
Copy link

Hi there - thanks for making this available - I don't think there are any other indonesian-english dictionaries out there.

I tried to install it and test it out, but it seems broken.

Steps to reproduce:
npm init
npm i id-en-dictionary
paste the following into index.js
`const dict = require("id-en-dictionary");

const start = async () => {
const d = await dict.init();
const result = d.query("mengerti");
console.log(result);
};

start();
`
node index.js

I got the following error:

`internal/modules/cjs/loader.js:311
throw err;
^

Error: Cannot find module '/home/xavier/repos/temp2/node_modules/id-wordnet/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:303:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:516:18)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/xavier/repos/temp2/node_modules/id-en-dictionary/dist/index.js:14:38)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/xavier/repos/temp2/node_modules/id-wordnet/package.json',
requestPath: 'id-wordnet'
}`

I would love to be able to use this package - please let me know if it would be possible to fix it - I could even have a go if you point me in the right direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant