JavaScript not working after parcel Build but everything else does

My website deployment : https://spiffy-swan-2cdde9.netlify.app
When I build locally and develop locally there is not a problem with loading JS.However when i try to deploy via netlify using the following build command:
parcel build index.html --dist-dir ./dist
my website won’t interact as any of my javascript is not working properly.

@Rosti The site you’ve linked displays a JavaScript error in the developer console:

image

image

Checking the page source, there doesn’t appear to be an element with an id of icon-open

2 Likes