stencil-community / stencil-app-starter

Minimal starter project for building web components with Stencil
https://github.com/ionic-team/stencil
MIT License
320 stars 102 forks source link

npm start 。。。 error #46

Closed jgw96 closed 6 years ago

jgw96 commented 6 years ago

From @lei1996 on April 13, 2018 11:47

Browser
{ "error": { "errno": -2, "code": "ENOENT", "syscall": "stat", "path": "/Users/lin/project/test/stencil-starter/www" } }

Stencil version:

 @stencil/core@<version>
```@stencil/core@0.7.15

**I'm submitting a:**
<!-- (check one with "x") -->
[ ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

**Current behavior:**
<!-- Describe how the bug manifests. -->

**Expected behavior:**
<!-- Describe what the behavior would be without the bug. -->

**Steps to reproduce:**
<!-- If you are able to illustrate the bug or feature request with an example, please provide steps to reproduce and if possible a demo
-->

**Related code:**

```tsx
// insert any relevant code here

Other information:

Copied from original issue: ionic-team/stencil#731

jgw96 commented 6 years ago

From @lei1996 on April 13, 2018 11:54

mac os 10.13.4 node.js v8.11.1

jgw96 commented 6 years ago

From @lei1996 on April 13, 2018 11:54

npm v5.8.0

jgw96 commented 6 years ago

From @lei1996 on April 13, 2018 11:56

git clone https://github.com/ionic-team/stencil-starter.git my-app cd my-app git remote rm origin npm install npm start

之后就 error 了

jgw96 commented 6 years ago

Hey! Since this seems to be an issue with the stencil-app-starter and not Stencil itself I am going to move this issue to that repo. Thanks!

jgw96 commented 6 years ago

Hello! This was just the browser saying that a www folder was not found while the app was building the first time. If you hit refresh in the browser after the app has built then everything works fine, but obviously, that is not ideal. I just pushed an empty www folder that fixes this issue.