Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I copied src code of one react project to another new one, and while doing so, all the code works fine in the browser but all the CSS works seems to vanish! There's no styling shown in the website.
I noticed that the config and scripts folder is not there in my new project which is in create-react-app
I also faced the same issue and what I did is copied all the CSS files in the public folder.
Maybe CSS defined in public/index.html and you forgot to copy this file
Maybe project was eject and some important changes are exist in config file to call and use CSS
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 months ago.
This post was edited and submitted for review 4 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm new to web development.
I made a website using HTML, CSS, and JavaScript and uploaded it to GitHub Pages. My JavaScript doesn't work there.
When running on my localhost, everything works fine, but on GitHub pages the javascript simply does not show up on my HTML page. If you check the IMPORTANTE_LER.md file, there's a youtube video on how it looks on localhost.
My repo: https://github.com/maruan-achkar/N2PAC_NEW
Console errors:
Probably the way you included your JS file path breaks in Github Pages because it can't find the file so adding a "./something.js" to your include might fix it.
<script src="./something.js" type="module"></script>
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 months ago.
Improve this question
I have created an app in JS react. To continue my work i have come up with a file in TSX. What should I do ?
Can I import a TSX file and interact with it whithin a JSX file ?
Should I transform my whole app to TSX for it to work ?
Yes you can, you just need to include a tsconfig file, though it would be better to stick to one.
Like #Kyano said, yes you can.
But it is not the right thing to do (a.k.a it is not a good practise).
You can however :
translate the tsx into jsx and then import the jsx.
Rewright the tsx file by your own in pure jsx
Move your all app into tsx (if you intend to).
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm trying to make a simple products scraping app, When I Start The Server On VsCode It Works Fine, But On Heroku It Only Scrapes The First Product And Blocks There, Please See The Photos, I'm Open To Any Suggestions.
image of it working on vsCode
image of it working on Heroku
Note: I had the same problem on vs code before (the same project) and solved it but it's not working on heroku. The problem was that an await never returns anything it just blocks the code so the server stays on that line forever.
I dont think the problem is in heroku, maybe you need to add catching errors in your application, and see what cases the trouble.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I'm building a project in React and Javascript, and I'm building with Browserify and Babelify, outputting a bundle.js file. When I run index.html locally, everything like Bootstrap, fonts, and CSS files are loaded properly. But after submitting it to Github Pages onto my custom domain, everything's messed up - images are everywhere, no formatting, Bootstrap is clearly not loaded. I'm assuming the file path got messed up, but why?
<head>
<link rel="stylesheet" href="./src/stylesheet/style.scss"> # The path only works locally
</head>
<body>
<div id="app"></div>
<script src="./bundle.js"></script>
</body>
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I'm trying to change or remove errors from a HTML page I'm using firebug add in firefox and I have this part which I really don't where its writen :
is there a way to get the file where this is write .
thanks for any hint
Continuing from my comment: The highlighted element is dynamically added by a slider plugin e.g. like http://jqueryui.com/slider/ The clue is the classes like ui-slider-handler.
Look for the id="voltage" to find the place in the HTML where the div is and look for #voltage or ("voltage" or 'voltage') to see where the plugin is connect to it (in any jQuery or Javascript code).
I don't think you can get the exact path of the file, but check "View page source" option to see what files the page has been linked to.