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

The dev-server fails when file path contains other languages #2161

Closed
a0972199950 opened this issue Jan 24, 2020 · 0 comments
Closed

The dev-server fails when file path contains other languages #2161

a0972199950 opened this issue Jan 24, 2020 · 0 comments
Labels

Comments

@a0972199950
Copy link

Stencil version:

@stencil/core@1.9.0-13

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

stencil-rich-text-editor@0.0.1 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:

@ionitron-bot ionitron-bot bot added the triage label Jan 24, 2020
adamdbradley added a commit that referenced this issue Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant