Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
0 answers

Reusable pop up throwing error at onclick event

First post here, and newer to Javascript. I have a node.js / express app that I am building and would like to re-use a yes no pop up in my front end by just changing some variables. The pop up works and displays the messages, but when I click the…
0
votes
1 answer

How to import javascript libraries using Parcel/Netlify?

I'm building a vanilla js app and using CDN's works fine, but If I install an app like typed.js with npm, and then import it as import typed from 'typed.js' it works as it should on a local dev server. However, once I push it and it's built on…
Stephan
  • 345
  • 2
  • 14
0
votes
2 answers

@parcel/transformer-css: Unknown at rule: @tailwind

I am trying to set up my react tailwind an typescript project. However i stumbled across an error that i have a hard time getting around. @parcel/transformer-css: Unknown at rule: @tailwind /home/sizzions/Projects/trials/owen/src/index.css:1:10 …
Owen Alikula
  • 408
  • 3
  • 11
0
votes
0 answers

Write a custom plugin for a bundler like parcel in a web app

I have my own nodejs web application which is using Parcel 2 to bundle the resources. { "name": "acme-web-app", "version": "0.0.1", "description": "", "keywords": [], "license": "", "author": "", "scripts": { "build": "parcel build…
Andez
  • 5,588
  • 20
  • 75
  • 116
0
votes
1 answer

Cannot read properties of undefined (reading 'isAbsolute')

I was editing this program yesterday and it worked fine the whole time. The program is created using parcel, today when started up the script and the dev server was broken. This is the error i recived: *Uncaught TypeError: Cannot read properties of…
albjoh22
  • 1
  • 3
0
votes
0 answers

Constant "Failed to load resource: the server responded with a status of 404 ()" when importing javascript on Github Pages

Fairly knew to utilizing parcel, but I am importing a series of javascript modules with: import animate from "./animate"; these js files are inside a folder "js" at the root of my site. Everything seems to import correctly when running it locally…
0
votes
1 answer

Locally working. But when i use parcel index.html it's not

I have a pricing page where I have a toggle to switch between annual and monthly. At the end, I am linking to a js file like this.
Annually
Newbie_developer
  • 233
  • 1
  • 12
0
votes
1 answer

Using SolidJS with Parcel & @suid/material build fails

I've tried to use the SolidJS+Parcel+TypeScript template starter project from here: https://github.com/TiagoCavalcante/solidts-parcel And once I import any element from @suid/material, such as Button, build fails. Here's how to reproduce: Checkout…
Alon Amir
  • 4,913
  • 9
  • 47
  • 86
0
votes
0 answers

Matter.js/Parcel SVG animation does not run on Bluehost server

I implemented a Matter.js SVG animation into a website, on localhost it runs well with Parcel. When I upload it to Bluehost server with File Manager, the animation does not work. I get the following error message in the console: Uncaught…
0
votes
2 answers

Why does my set state does not get updated when given a value?

I was working with an api meaning that I fetch the api and convert it to json before i pass it to one of the state i want to update. It was working fine until it didn't. const [ids, setIDs] = useState([]); This is the code for fetching from the…
Raha32
  • 1
  • 3
0
votes
1 answer

Failed to register the Service Worker: The operation is insecure

I'm having trouble using Mock Service Worker in a React project. The application is bundled using parceljs inside the dist folder, the pages are visualized correctly however msw is unable to register the service worker. I followed all the setup…
0
votes
0 answers

Having trouble installing npm package

Hello currently I'm trying to install this parcel npm( first time installing any npm) and ive watched a bunch of tutorials on how to do it but i still run into this problem, where I copy paste "npm install --save-dev parcel" into Terminal and the…
Edgaras
  • 69
  • 4
0
votes
0 answers

Reducing the Parceljs bundler build size with Antd library

I am using ParcelV2 to create bundles for my typescript React application. Below are my details, /// package.json "scripts": { "start:dev": "REACT_APP_MODE=dev parcel public/index.html --open --port 3000", "start": "rimraf .parcel-cache &&…
Sunface
  • 35
  • 6
0
votes
1 answer

What happens when you run the “build” script in parcel?

I’m a confused on what exactly the build script does and how it relates to deployment. I know it it makes your project small by renaming variables, trimming white space, etc… but how does it work with deployment? Do you only push the files that are…
gmeeker99
  • 33
  • 3
0
votes
0 answers

Parcel: Call eslint script on save

I have configured eslint so that when I run npm run lint I get lint errors. How do I configure Parcel so that it runs this command when my code is saved?
abc
  • 1,141
  • 12
  • 29