You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some scenarios, the path pointed by __dirname is not in runfiles.
Version
Development (host) and target OS/architectures:
Output of bazel --version: 7.1.1
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: 1.41.0
Language(s) and/or frameworks involved: js
How to reproduce
https://github.com/hunshcn/vitets_alias_broken
bazel run //portal:vite
see output of
```jsconsole.log(path.resolve('src/'))console.log(path.resolve(__dirname, 'src/'))
This will lead to some strange problems, such as built twice #1645
Vite is used in this example (because it is found in production). The problem should be reproduced in a smaller way. But because I am not proficient in js, to be honest, I don't even know how cjs/mjs/ts work together directly. I only tried pure cjs without this problem.
Any other information?
No response
The text was updated successfully, but these errors were encountered:
What happened?
In some scenarios, the path pointed by
__dirname
is not in runfiles.Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 7.1.1Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: 1.41.0Language(s) and/or frameworks involved: js
How to reproduce
This will lead to some strange problems, such as built twice #1645
Vite is used in this example (because it is found in production). The problem should be reproduced in a smaller way. But because I am not proficient in js, to be honest, I don't even know how cjs/mjs/ts work together directly. I only tried pure cjs without this problem.
Any other information?
No response
The text was updated successfully, but these errors were encountered: