score:1
Accepted answer
The dot in ./config.js
denotes a URL relative to the current path. i.e. A document served from /profile/profileId
will request the file /profile/profileId/config.js
- which doesn't exist.
To specify that a partial URL always be from the root, you should omit the dot.
<script src="/config.js"></script>
Source: stackoverflow.com
Related Query
- React app not loading js file when accessing it with a non home page url
- React app showing page with "404 the requested path could not be found" when using Apache
- React app is not rendering at all when loading HTML page that contains it
- Images not loading in React app with Webpack despite having file loaders (url-loader)
- Redirect to home when React app served by S3 is called with url containing a route
- Is there a way to tell when your react app page is done loading the page / assets?
- react-i18next not loading json translation files in React app created with create-react-app
- React router is not reloading page when url matches the same route
- URL changes but page new page is not rendered Ionic React , IonReactRouter with history
- Unicode characters not showed when bundling and deploying React app with webpack and babel
- Nextjs custom 404 page not showing when accessing invalid url in netlify
- React js Router changes url but not loading page
- App doesn't run when exporting react & react-router to a stand alone html file with webpack
- React components not rendering when routing to new page with react-router-dom v6
- react app loading asset from incorrect file path when accessed from nested route
- Why does my react app go to the custom 404 not found page when the link is clicked?
- When I try to register a service worker file in react app it will give me a reference error: navigator is not defined
- 404 Not Found error in preflight OPTIONS when executing a PUT method in CakePHP API with axios in React App
- I have this `div` on my home page and want it to move with me when I scroll, I am using react for the website btw
- Getting API URL from the External File which is not a part of the React app
- `require is not defined` error when using electron with a react app
- File not found error when trying to 'fetch' json in React App
- URL is updating but page is not redirecting in react app
- React Routing: URL is changing but page is not loading
- Image file cannot be found when using URL loader of webpack with React & Django
- Images not loading in React app when deployed on Heroku
- Page content is not loading after redirect - React web app
- while building infinite loading via API in REACT , the page number is not updating in console even when i scroll down a lot
- my page is not rendering with different id on the same page when i use link in react components
- Netlify blank page when refresh url with more than one path param using react router
More Query from same tag
- onCLick event on mapped array's element
- React - Element type is invalid: expected a string
- How to eliminate hover, active, focus gray color in Material UI Chip component
- How can I fetch data from an array of objects, pass it through an API end point to .fetch() the needed object value using React?
- Passing Arguments to Event Handlers
- Using Formik and wrapping Material TextField causing blur on keypress
- Trying to reformat this class into a function
- React & SVG: How do I make <path> support onClick?
- How to loop through an array of array of two objects Alphavantage API
- Uploading an image with multer / react-dropzone
- Getting error "Unhandled Rejection (TypeError): api_call4.json is not a function" even when error is caught in reactjs
- firebase safari error Messaging: This browser doesn't support the API's required to use the firebase SDK
- webpack can't find module if file named jsx
- React-Form(v7) Reactstrap with Typescript
- Control touchable area in react-native
- How to stop data being retrieved when my component is loaded
- useReducer to retain object state and update a specific item
- How add types for react private router component?
- React re-evaluate useRef if props change
- How to iterate the elements and based on certain condition update the entries an object in React Js
- Does wrapping my SVG icons inside a SPAN give me more styling capatilities and flexibility?
- My Axios POST request in a React app is not working
- React Material-Ui Sticky Table Header with Dynamic Height
- How to style TexField Component with type = date on React JS
- Unable to render a child component inside main Component using iteration
- Problems with react-table using "useSortBy"
- React Required Validation using State
- How to receive inline styles and classes in a component
- Three.js Error: "Feedback loop formed between Framebuffer and active Texture" - Rendering Reflections
- How does react hooks handles callback when it sets the state?