dva-example-user-dashboard icon indicating copy to clipboard operation
dva-example-user-dashboard copied to clipboard

Note that the development build is not optimized. To create a production build, use npm run build.

Open kaqiinono opened this issue 6 years ago • 10 comments

image

the page is empty

kaqiinono avatar Aug 08 '17 14:08 kaqiinono

Have you enabled a proxy?

sorrycc avatar Aug 09 '17 06:08 sorrycc

How can I enable proxy?

princecharming519 avatar May 29 '18 05:05 princecharming519

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

ShivaShankerReddy avatar Oct 08 '18 17:10 ShivaShankerReddy

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

blockofcodes avatar Dec 25 '19 19:12 blockofcodes

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

Navdeep-bains avatar Feb 22 '20 07:02 Navdeep-bains

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

avijadu avatar Mar 25 '21 19:03 avijadu

you are forget to export an component

tahiriabdo131 avatar Apr 21 '21 12:04 tahiriabdo131

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 = {
^^^^^^

UtmostCreator avatar Jan 19 '22 16:01 UtmostCreator

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

abdalshafiealmajdoup avatar Jul 25 '22 08:07 abdalshafiealmajdoup

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

coderbekhub avatar Dec 29 '22 05:12 coderbekhub