Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kaqiinono opened this issue Aug 8, 2017 · 10 comments

Comments

@kaqiinono
Copy link

image

the page is empty

@sorrycc
Copy link
Member

sorrycc commented Aug 9, 2017

Have you enabled a proxy?

@princecharming519
Copy link

How can I enable proxy?

@ShivaShankerReddy
Copy link

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

@blockofcodes
Copy link

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

@Navdeep-bains
Copy link

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

@avijadu
Copy link

avijadu commented Mar 25, 2021

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

@tahiriabdo131
Copy link

you are forget to export an component

@UtmostCreator
Copy link

UtmostCreator commented Jan 19, 2022

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

@abdalshafiealmajdoup
Copy link

abdalshafiealmajdoup commented Jul 25, 2022

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

@coderbekhub
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests