solid-contrib / solid-rest

a client-side API which supports any backend for Solid requests
37 stars 9 forks source link

Error: Cannot find module '/home/jeff/solid/solid-rest/core/' #76

Closed jaxoncreed closed 2 years ago

jaxoncreed commented 2 years ago

I think the most recent version of solid-rest had a build problem committed to NPM. Running the code gives me this error:

Error: Cannot find module '/home/jeff/solid/solid-rest/core/'
Require stack:
- /Users/jackson/O/clone-to-solid-pod/node_modules/@solid-rest/file/dist/cjs/index.js
- /Users/jackson/O/clone-to-solid-pod/node_modules/solid-node-client/dist/cjs/index.js
- /Users/jackson/O/clone-to-solid-pod/lib/index.ts

The file at /node_modules/@solid-rest/file/dist/cjs/index.js has this line:

var _core = _interopRequireDefault(require("/home/jeff/solid/solid-rest/core/"));
jeff-zucker commented 2 years ago

Did you build the new version 2.1.8 of @solid-rest/file? I just built it and grepped for "/home/jeff/solid" and found nothing in the dist/cjs/index.js or any other file. The previous version did have a mistaken reference to a local file in the src/index.js but I fixed that when I fixed the $rdf thing so my guess is that you are looking at something built with the previous version. I'm up so if this turns out not to be the case, ping me.

jaxoncreed commented 2 years ago

I'm just installing it from npm. I see that there is no reference to /home/jeff/solid in the codebase, but when I install from npm, it's there. Do you see that too?

jeff-zucker commented 2 years ago

Nuts, yeah, I just pulled from npm and the grep turned it up. So I just uploaded 2.1.9, sorry for the problems.

jaxoncreed commented 2 years ago

Thanks, could you also release a new version of solid-node-client that uses v2.1.9 of @solid-rest?

jeff-zucker commented 2 years ago

I just npm'd v.2.1.2 of solid-node-client which requires v2.1.9 of @solid-rest/file.

jeff-zucker commented 2 years ago

P.S. If you want faster response time, ping me in chat :-)

jaxoncreed commented 2 years ago

Thanks