Skip to content
Advertisement

Tag: parceljs

ParcelJS: Build HTML to different subdirectories using the same code

I have two .html files using the same Javascript code and assets. As they are representing different language versions of the same site, I would like to build them to different subdirectories with parcel. Currently, I’m building these in an asymmetric way. The .html files are the entry points, index.html being the English language version: Current input: Current output: Current

Loop doesn’t work when exported with ParcelJS

I am using ParcelJS V2. I have the following code that gets data from an HTML table. Every <td> in the cell consists of an <input> tag and the getElementById refers to the ID of the input tag. getCount.js script.js When I check my console, there isn’t log from the collectData function. This FOR loop works fine when I use

TypeError: (0 , _react.useEffect) is not a function

when in the development environment, my app works just fine. When in the production environment it crashes with the error: Uncaught TypeError: (0 , _react.useEffect) is not a function It happens in a file I created where I import React and useEffect like so: adding a console.log just below this line confirms that useEffect is indeed undefined when in production

Advertisement