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

RDFLib entry failed to resolve #75

Open
renyuneyun opened this issue Oct 23, 2023 · 0 comments
Open

RDFLib entry failed to resolve #75

renyuneyun opened this issue Oct 23, 2023 · 0 comments

Comments

@renyuneyun
Copy link

renyuneyun commented Oct 23, 2023

After #74 , I attempted to use rdflib instead. After installing dependencies, the build still errors out:

✘ [ERROR] Failed to resolve entry for package "rdflib". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

    node_modules/esbuild/lib/main.js:1373:21:
      1373 │         let result = await callback({
           ╵                      ^

    at packageEntryFailure (file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28725:11)
    at resolvePackageEntry (file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28722:5)
    at tryNodeResolve (file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28453:20)
    at Context.resolveId (file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:28212:28)
    at Object.resolveId (file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:44276:64)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:65922:21
    at async file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:39976:34
    at async requestCallbacks.on-resolve (/Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:1373:22)
    at async handleRequest (/Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:729:13)

  This error came from the "onResolve" callback registered here:

    node_modules/esbuild/lib/main.js:1292:20:
      1292 │       let promise = setup({
           ╵                     ^

    at setup (file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:39956:19)
    at handlePlugins (/Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:1292:21)
    at buildOrContextImpl (/Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:978:5)
    at Object.buildOrContext (/Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:786:5)
    at /Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:2186:68
    at new Promise (<anonymous>)
    at Object.context (/Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:2186:27)
    at Object.context (/Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/esbuild/lib/main.js:2026:58)
    at prepareEsbuildOptimizerRun (file:///Users/ruizhao/coding/minimal-reproduction/ldflex-getting-started/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:46041:35)

  The plugin "vite:dep-pre-bundle" was triggered by this import

    node_modules/@ldflex/rdflib/src/RdflibQueryEngine.js:5:7:
      5 │ } from 'rdflib';
        ╵        ~~~~~~~~

I have installed @ldflex/rdflib and rdflib.

MRE also see https://github.com/renyuneyun/minimal-reproduction/tree/master/ldflex-getting-started, and uncomment line 7 (and comment out line 6) of src/App.vue to see this error.

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