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
Tag: parceljs
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
Parcel bundler “ENOENT: no such file or directory” when delete files from project
After I’ve deleted couple files from project that uses Parcel bundler, command parcel ./index.html started to output following error: Answer Solution Delete .parcel-cache and dist folders and run command again. (NB: The cache folder was called just .cache in version 1.x of Parcel.) Proposal Add cleanup script for this and run it each time before parcel build: Also you can