Callidon / sparql-engine

🚂 A framework for building SPARQL query engines in Javascript/Typescript
https://callidon.github.io/sparql-engine
MIT License
97 stars 14 forks source link

Modules not found after fresh install #69

Closed valentinoli closed 2 years ago

valentinoli commented 2 years ago

Describe the bug Relative modules in ./dist/api.js are not found after installing

To Reproduce Steps to reproduce the behavior:

  1. Run npm install sparql-engine
  2. Use the package

Expected behavior It should not throw errors like the following:

ERROR in ./node_modules/sparql-engine/dist/api.js
Module not found: Error: Can't resolve './engine/pipeline/pipeline-engine' in ...

Desktop (please complete the following information):

Additional context The dist/ folder only contains api.js after fresh install but should contain more files.

I ran npm run build to build the package and all the other files appeared then and the package works fine.

Callidon commented 2 years ago

I appears that the .npmignore was misconfigured, ignoring the distribution files when publishing.

I just release a new version 0.8.2 that should solve this issue. Can you please try installing the new version and report if it fixed the issue?

valentinoli commented 2 years ago

Thanks @Callidon - it fixed the issue :)