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

Dev Server errors on code changes: StringExpected, Failed to convert JavaScript value Undefined into rust type String #6943

Closed
SharmaTushar opened this issue Jun 26, 2024 · 1 comment · Fixed by #6953

Comments

@SharmaTushar
Copy link

System Info

System:
OS: Windows 10 10.0.19045
CPU: (10) x64 AMD EPYC 7763 64-Core Processor
Memory: 14.11 GB / 40.00 GB
Binaries:
Node: 20.15.0 - C:\Program Files\nodejs\node.EXE
npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.0.6 - ~\AppData\Local\pnpm\pnpm.EXE
Browsers:
Edge: Chromium (126.0.2592.68)
Internet Explorer: 11.0.19041.4355
npmPackages:
@rspack/cli: ^0.7.5 => 0.7.5
@rspack/core: ^0.7.5 => 0.7.5
@rspack/plugin-react-refresh: ^0.7.5 => 0.7.5

Details

Making any changes to code results in error:

<e> [webpack-dev-middleware] [Error:   × StringExpected, Failed to convert JavaScript value `Undefined` into rust type `String`
<e> ] {
<e>   code: 'GenericFailure'
<e> }

Reproduce link

https://github.com/SharmaTushar/rspack-generic-failure

Reproduce Steps

Run the server
change code

@SharmaTushar SharmaTushar added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jun 26, 2024
@h-a-n-a h-a-n-a removed bug Something isn't working pending triage The issue/PR is currently untouched. labels Jun 27, 2024
@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 27, 2024

The filename returned in options.filename function should not be an undefined

@h-a-n-a h-a-n-a changed the title [Bug]: Dev Server errors on code changes: StringExpected, Failed to convert JavaScript value Undefined into rust type String Dev Server errors on code changes: StringExpected, Failed to convert JavaScript value Undefined into rust type String Jun 27, 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

Successfully merging a pull request may close this issue.

2 participants