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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: error while importing module, related to . in path-name #1439

Open
2 tasks done
bigmistqke opened this issue Apr 7, 2024 · 1 comment
Open
2 tasks done

[Bug?]: error while importing module, related to . in path-name #1439

bigmistqke opened this issue Apr 7, 2024 · 1 comment
Labels
bug Something isn't working vinxi related to vinxi

Comments

@bigmistqke
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 馃槸

When trying to import @tensorflow/tfjs-node on the server I get the following error:

12:19:49 AM [vite] Error when evaluating SSR module /src/server/query.ts: failed to import "@tensorflow/tfjs-node"
|- Error: dlopen(/Users/bigmistqke/Documents/GitHub/start-bug/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node, 0x0001): Library not loaded: @loader_path/../../deps/lib/libtensorflow.2.dylib
  Referenced from: <5C0AA5B7-B5A7-3035-A048-D9A2501EB16D> /Users/bigmistqke/Documents/GitHub/start-bug/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node
  Reason: tried: '/Users/bigmistqke/Documents/GitHub/start-bug/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tensorflow/tfjs-node/lib/napi-v8/../../deps/lib/libtensorflow.2.dylib' (no such file), '/usr/local/lib/libtensorflow.2.dylib' (no such file), '/usr/lib/libtensorflow.2.dylib' (no such file, not in dyld cache)

The library looks for file libtensorflow.2.dylib but the file is actually called libtensorflow.2.7.0.dylib.
The same error occurs with the file libtensorflow_framework.2.7.0.dylib

Expected behavior 馃

I expect the file to get imported. With vanilla nodejs there is no issue.

Steps to reproduce 馃暪

Steps:

  1. clone https://github.com/bigmistqke/start-bug
  2. pnpm install
  3. pnpm dev

(Another unrelated error happens on stackblitz)

Context 馃敠

reeeeeee mentioned a similar bug happened with route-paths, so maybe they are related.

Your environment 馃寧

MacOS M1
@bigmistqke bigmistqke added the bug Something isn't working label Apr 7, 2024
@ryansolid
Copy link
Member

This isn't to do with routing. This is path resolution to do with bundling/dev server.

@ryansolid ryansolid added the vinxi related to vinxi label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vinxi related to vinxi
Projects
None yet
Development

No branches or pull requests

2 participants