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

Cannot run development server in Windows 10 #1062

Closed
gtbono opened this issue Mar 22, 2020 · 9 comments
Closed

Cannot run development server in Windows 10 #1062

gtbono opened this issue Mar 22, 2020 · 9 comments

Comments

@gtbono
Copy link

gtbono commented Mar 22, 2020

I Installed a vanilla global preact-cli installation on Windows 10 2004 using Node.js v12.16.1.

npm install -g preact-cli

I used the following command to create a new preact app for my blog:

preact.cmd create default blog

And then I ran the following command to start a live server for development:

npm run start

At this moment, I expected that the server would show up, but instead, the following text is printed to my powershell console:

blog@0.0.0 start C:\Users\gtbon\Code\blog
per-env

And nothing happens, I'm unsure if this is a preact or preact-cli issue, I can open in preact-cli if needed.

@JoviDeCroock
Copy link
Member

Transferring this issue to preact-cli

@JoviDeCroock JoviDeCroock transferred this issue from preactjs/preact Mar 22, 2020
@benhormann
Copy link

You can use npm run dev to bypass per-env.

The problem is in the template: preactjs-templates/default#36

@daniel-sudz
Copy link

Same issue here #1115

@daniel-sudz
Copy link

daniel-sudz commented Apr 5, 2020

The solution by @benhormann has worked for me. Would it be possible to add this bypass to the preact-cli readme? I can submit a pull requested if this is wanted.

@ForsakenHarmony
Copy link
Member

We talked about briefly internally and think we can just remove per-env from all templates because it doesn't provide much value

If you want to make a PR, feel free

@gtbono
Copy link
Author

gtbono commented Apr 6, 2020

I can work in a PR for this

@daniel-sudz
Copy link

daniel-sudz commented Apr 6, 2020

I have submitted a pull request removing per-env from package.json and replacing "start" with "preact watch"

preactjs-templates/default#40
preactjs-templates/typescript#19

Please let me know if anything else needs to be done.

@ForsakenHarmony
Copy link
Member

Thanks for the PRs @daniel-sudz 🎉

@ForsakenHarmony
Copy link
Member

Should now be fixed in all templates

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

5 participants