The dev-server fails when file path contains other languages
Stencil version:
@stencil/[email protected]
I'm submitting a:
[x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
It happens when running dev server by npm start in component mode.
If the project file path contains any language other than English, for example:
C:\Users\a0972\OneDrive\文件\Programing\Temp\あいうえお
The dev server will be not able to navigate to the www/ folder, result in no output in screen. Here is what function serve404 output looks like:
404 File Not Found Url: /404 File: C:\Users\a0972\OneDrive\���辣\Programing\Temp\���������蹾www\404
And the logs also don't show any error:
PS C:\Users\a0972\OneDrive\文件\Programing\Temp\あいうえお> npm start
[email protected] start C:\Users\a0972\OneDrive\文件\Programing\Temp\あいうえお stencil build --dev --watch --serve
[55:04.6] @stencil/core v1.8.5 [55:06.3] build, stencil-rich-text-editor, dev mode, started ... [55:06.4] transpile started ... [55:06.4] transpile finished in 5 ms [55:06.4] type checking started ... [55:06.4] copy started ... [55:06.4] copy finished (0 files) in 21 ms [55:06.4] dev server: http://localhost:3333/ [55:06.4] build finished, watching for changes... in 111 ms
Expected behavior: The dev-server is able to encode and decode file path when it contains languages other than English.
Steps to reproduce:
mkdir 中文 cd 中文 npm init stencil √ Pick a starter » component √ Project name » my-stencil-project cd my-stencil-project npm start
Related code:
// insert any relevant code here
Other information: