Giter Site home page Giter Site logo

Note that the development build is not optimized. To create a production build, use npm run build. about dva-example-user-dashboard HOT 10 OPEN

dvajs avatar dvajs commented on May 25, 2024
Note that the development build is not optimized. To create a production build, use npm run build.

from dva-example-user-dashboard.

Comments (10)

sorrycc avatar sorrycc commented on May 25, 2024 18

Have you enabled a proxy?

from dva-example-user-dashboard.

tahiriabdo131 avatar tahiriabdo131 commented on May 25, 2024 4

you are forget to export an component

from dva-example-user-dashboard.

abdalshafiealmajdoup avatar abdalshafiealmajdoup commented on May 25, 2024 3

install nvm ,
node -v, please select node stable v16.16.0,
nvm install v16.16.0,
nvm now use v16.16.0,
sudo rm -r package-lock.json,
sudo rm -r node_modules,
sudo rm -r dist,
npm install --save,
npm run build,
npm run serve -- --port 8080
...... Done......

from dva-example-user-dashboard.

Navdeep-bains avatar Navdeep-bains commented on May 25, 2024 2

after create your react-app and before start your server you have to run this command npm run build after this command start you server i hope this will be great for you

from dva-example-user-dashboard.

coderbekhub avatar coderbekhub commented on May 25, 2024 2

after create your react-app and before start your server you have to run this command npm run build after this command start you server i hope this will be great for you
i did npm run build and i get error in terminal saying failed compiled help me

from dva-example-user-dashboard.

blockofcodes avatar blockofcodes commented on May 25, 2024 1

Change the URL to http://localhost:3000/ << this is the default set URL when you install react

from dva-example-user-dashboard.

princecharming519 avatar princecharming519 commented on May 25, 2024

How can I enable proxy?

from dva-example-user-dashboard.

ShivaShankerReddy avatar ShivaShankerReddy commented on May 25, 2024

@sorrycc i enabled proxy and go that note inside terminal.

from dva-example-user-dashboard.

avijadu avatar avijadu commented on May 25, 2024

after create your react-app and before start your server you have to run this command npm run build after this command start you server i hope this will be great for you

I tried it but their is no solution. I also use localhost:3000

from dva-example-user-dashboard.

UtmostCreator avatar UtmostCreator commented on May 25, 2024

you are forget to export an component

Yeah, I have exactly this problem. in babel.config.js file, but in your case it could be any other file.
Before:

// ./babel.config.js
module.exports = {
  presets: ["@vue/cli-plugin-babel/preset"],
};

After:

// ./babel.config.js
export default module.exports = {
  presets: ["@vue/cli-plugin-babel/preset"],
};

However, if I resetar the client, then I have the following error:

 ERROR  SyntaxError: DISK:\path\to\my\project\client\babel.config.js: Error while loading config - Unexpected token 'export'
DISK:\path\to\my\project\client\babel.config.js:1
export default module.exports = {
^^^^^^

from dva-example-user-dashboard.

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.