Code Monkey home page Code Monkey logo

Comments (8)

dhmlau avatar dhmlau commented on September 3, 2024

@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.

aslak01 avatar aslak01 commented on September 3, 2024

@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.

raymondfeng avatar raymondfeng commented on September 3, 2024

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.

dhmlau avatar dhmlau commented on September 3, 2024

@aslak01 , does the link from @raymondfeng above help?

from loopback-cli.

dhmlau avatar dhmlau commented on September 3, 2024

@aslak01, do you still encounter this issue? If not, I'd like to close this ticket. Thanks.

from loopback-cli.

mojodev avatar mojodev commented on September 3, 2024

@aslak01 did you find any solution for this issue ??

from loopback-cli.

aslak01 avatar aslak01 commented on September 3, 2024

@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.

dhmlau avatar dhmlau commented on September 3, 2024

Thanks @aslak01. Closing as resolved.

from loopback-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.