stencil-app-starter: Fail to start with Stencil 0.11.0
Stencil version: (run npm list @stencil/core from a terminal/cmd prompt and paste output below):
@stencil/core v0.11.0
I’m submitting a … (check one with “x”) [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:
$ cd /c/ae
peterennis@EINSTEINIUM MINGW64 /c/ae
$ git clone https://github.com/ionic-team/stencil-starter.git my-app
Cloning into 'my-app'...
remote: Counting objects: 374, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 374 (delta 25), reused 40 (delta 20), pack-reused 321
Receiving objects: 100% (374/374), 404.13 KiB | 4.44 MiB/s, done.
Resolving deltas: 100% (191/191), done.
peterennis@EINSTEINIUM MINGW64 /c/ae
$ cd my-app
peterennis@EINSTEINIUM MINGW64 /c/ae/my-app (master)
$ git remote rm origin
peterennis@EINSTEINIUM MINGW64 /c/ae/my-app (master)
$ npm i
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\sane\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 762 packages from 460 contributors and audited 24968 packages in 17.112s
found 366 vulnerabilities (361 low, 5 high)
run `npm audit fix` to fix them, or `npm audit` for details
peterennis@EINSTEINIUM MINGW64 /c/ae/my-app (master)
$ npm start
> @stencil/starter@0.0.1 start C:\ae\my-app
> stencil build --dev --watch --serve
[04:13.7] @stencil/core v0.11.0
[04:14.5] build, app, dev mode, started ...
[04:14.5] transpile started ...
[04:15.5] transpile finished in 969 ms
[04:15.6] module map started ...
[04:15.6] generate styles started ...
[04:15.7] compile global style start ...
[04:15.9] compile global style finish in 124 ms
[04:15.9] generate styles finished in 281 ms
[04:16.1] module map finished in 510 ms
[04:16.1] generate bundles started ...
[04:16.1] generate bundles finished in 5 ms
[04:16.1] generate app files started ...
[04:17.2] generate app files finished in 1.10 s
[ ERROR ] Cannot find module 'request' at Function.Module._resolveFilename
(module.js:547:15) at Function.Module._load (module.js:474:25) at
Module.require (module.js:596:17) at require
(internal/module.js:11:18) at
C:\ae\my-app\node_modules\request-promise-native\lib\rp.js:8:12 at
module.exports
(C:\ae\my-app\node_modules\stealthy-require\lib\index.js:62:23) at
Object.<anonymous>
(C:\ae\my-app\node_modules\request-promise-native\lib\rp.js:7:15) at
Module._compile (module.js:652:30) at Object.Module._extensions..js
(module.js:663:10) at Module.load (module.js:565:32)
[04:17.2] dev server: http://localhost:3333/
Expected behavior: It should work
Steps to reproduce:
Follow the readme instructions.

Other information: Related: https://github.com/ionic-team/create-stencil/issues/8
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (3 by maintainers)
@peterennis I have the same problem. I solved it by running
npm install request --save-devbeforenpm start.Solved after install
requestas devDependencies.This should be fixed now. If someone could independently verify by doing the following it would be greatly appreciated: