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

Weird behavior in very simple App.js building. #472

Closed
FateRiddle opened this issue Jun 27, 2020 · 1 comment · Fixed by #473
Closed

Weird behavior in very simple App.js building. #472

FateRiddle opened this issue Jun 27, 2020 · 1 comment · Fixed by #473

Comments

@FateRiddle
Copy link

FateRiddle commented Jun 27, 2020

The published bundle somehow couldn't work and I don't know why, so I tried to make App.js really simple:

function App() {
  return 'hello';
}

export default App;

and run npm run build
the result will be an empty css file (even though I delete .css file in src) and an js file:

"use strict";

Which is definite a wrong output.

What's the hidden rule in this building process?

@hmaurer
Copy link

hmaurer commented Jun 28, 2020

It will be difficult to identify the source of your problem without a reliable way to reproduce it. Could you share a complete minimal example? (including the version of Vite that you are using).

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants