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

XLR Converters and utils should work by default in the browser #152

Open
adierkens opened this issue Jul 25, 2024 · 0 comments · May be fixed by #192
Open

XLR Converters and utils should work by default in the browser #152

adierkens opened this issue Jul 25, 2024 · 0 comments · May be fixed by #192
Assignees
Labels
bug Something isn't working

Comments

@adierkens
Copy link
Member

Importing and using the TSWriter from xlr-converters results in an exception for the path module:

import { TSWriter } from "@player-tools/xlr-converters";

const tsWriter = new TSWriter();
✘ [ERROR] Could not resolve "path"

    ../../../../../../node_modules/.aspect_rules_js/@[email protected]/node_modules/@typescript/vfs/dist/vfs.esm.js:575:17:
      575 │   return require(String.fromCharCode(112, 97, 116, 104));
          ╵                  ^

  The package "path" wasn't found on the file system but is built into node. Are you trying to
  bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
@adierkens adierkens added the bug Something isn't working label Jul 25, 2024
@KetanReddy KetanReddy self-assigned this Jul 26, 2024
@KetanReddy KetanReddy linked a pull request Feb 13, 2025 that will close this issue
4 tasks
@KetanReddy KetanReddy linked a pull request Feb 13, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants