Comments (8)
@aslak01, may I know what's the step to reproduce?
I've tried to scaffold a new app with the following selection and run npm start
to start the server. I didn't get any error.
$ lb app
? What's the name of your application? test-0131
? Enter name of the directory to contain the project: test-0131
create test-0131/
info change the working directory to test-0131
? Which version of LoopBack would you like to use? 3.x (Active Long Term Support)
? What kind of application do you have in mind? api-server (A LoopBack API server with local User auth)
Generating .yo-rc.json
...
Looking at the log you provided, dont-sniff-mimetype
is not one of our dependencies of the generated app. Did you make other modifications to the app before running?
from loopback-cli.
@djmlau I'm not sure what's going on, but I haven't modified lb-cli, at least not intentionally.
I've made a video of the error occurring: https://streamable.com/4de7a
$ npm list --depth=0
[email protected] /Users/a/dev/web/test123
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
from loopback-cli.
See https://medium.com/@johnstew/webpack-hmr-with-express-app-76ef42dbac17. It seems that you need to add webpack middleware to support that.
from loopback-cli.
@aslak01 , does the link from @raymondfeng above help?
from loopback-cli.
@aslak01, do you still encounter this issue? If not, I'd like to close this ticket. Thanks.
from loopback-cli.
@aslak01 did you find any solution for this issue ??
from loopback-cli.
@dhmlau @mojodev Hey, sorry for the late reply. I haven't been able to test due to time constraints, but I believe @raymondfeng points in the correct direction to solve the issue.
from loopback-cli.
Thanks @aslak01. Closing as resolved.
from loopback-cli.
Related Issues (20)
- New warning about Loopback 4.x get in the way of the output HOT 2
- Can not Use CLI on IBMI P7 HOT 8
- lb relations ignores models from paths other than common/models HOT 6
- Loopback CLI crashing with type error HOT 8
- Can't install loopback cli HOT 24
- Unable to install loopback-cli HOT 2
- Prototype pollution in lodash via strong-docs > dox > jsdoctypeparser > lodash HOT 8
- Unable to generate repository using lb4 command HOT 1
- Publish a new version of loopback-cli using dependency [email protected] HOT 4
- Not able to create model's properties using loopback-cli HOT 4
- lp: Error - no default destination available. error. HOT 1
- Json file formatted as single line HOT 8
- Can't install loopback-cli HOT 6
- terminal hangs when creating a new app HOT 7
- unable to run project . HOT 2
- updating to ES6 HOT 5
- LICENSE file is ambiguous HOT 7
- LB commands take forever (5-10min) HOT 3
- remote-method command does nothing HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loopback-cli.