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

Bug: Rules fail to load on Windows #2

Closed
atopper opened this issue Oct 8, 2024 · 0 comments
Closed

Bug: Rules fail to load on Windows #2

atopper opened this issue Oct 8, 2024 · 0 comments

Comments

@atopper
Copy link
Contributor

atopper commented Oct 8, 2024

Expected Behaviour

Running assistant should work on Windows.

Actual Behaviour

Running assistant does not work because it fails to load the rules. The path includes a drive (c:) and await import() assumes 'c' is a protocol, but it only accepts file: protocol.

Reproduce Scenario (including but not limited to)

  • All the time

Steps to Reproduce

  • Run assistant on Windows

Platform and Version

  • Windows

Sample Code that illustrates the problem

const rulesModule = await import(${process.cwd()}${outputPath}/${FILENAME});

Logs taken while reproducing problem

atopper added a commit that referenced this issue Oct 9, 2024
atopper added a commit that referenced this issue Oct 9, 2024
@arumsey arumsey closed this as completed Nov 20, 2024
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

2 participants