Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
1 answer

How can I display my index.html using parcel?

I would like to display a project I am working on with parcel by typing parcel index.html parcel charges then display this error message : 29 | "@parcel/transformer-sass": "^2.0.0-beta.2", 30 | "@parcel/transformer-vue": "^2.0.0-beta.2", | …
Rolek
  • 73
  • 6
0
votes
1 answer

Uncaught TypeError: Cannot read properties of undefined (reading 'forEach') (using Parcel )

['hashchange' &&'load'].forEach(ev => window.addEventListener(ev, controlRecipes)) // window.addEventListener('hashchange', controlRecipes) // window.addEventListener('load', controlRecipes) The following is the output from the…
RainbowWzrd
  • 1
  • 1
  • 1
0
votes
1 answer

How do I manually change a file name in Parcel?

Every time I try to run npm start or npm build I get an error saying unknown: Entry /mnt/c/Users/kabre/Desktop/18-forkify/index.html does not exist. I got told that Parcel might be automatically renaming my index.html. Not sure how to go on about…
Kevin A
  • 63
  • 1
  • 8
0
votes
1 answer

Parcel character encoding

In Parcel 2 RC we use ES modules, so we need to add the type="module" attribute to the script tags (Otherwise, we get an error message). When we chose a script tag to be a module the code is treated as a JavaScript module, and the processing of the…
Mateo Lara
  • 827
  • 2
  • 12
  • 29
0
votes
1 answer

React project is not displaying text as I intend

I am using Material UI TextInput component with a placeholder prop that passes the text "Contraseña"; The letter ñ in the word is not rendering as intended, but as \fx1. The HTLM header have meta UTF-8 and I am using parcel 2.0.0-rc.0 as my…
Mateo Lara
  • 827
  • 2
  • 12
  • 29
0
votes
1 answer

ParcelJS build is not honoring fractional module

I'm building a mock app in HTML, CSS and JS. However, after running the 'npm run build' to compress, build and bundle the files in dist folder and uploading to netlify server to test the build version, it is throwing "Uncaught ReferenceError:…
BitsNcode
  • 21
  • 4
0
votes
1 answer

in parceljs how to make it pick the min file in node modules

I am using 'animate.css' as a npm package. to use it I specify import 'animate.css' during development. But in production it says to include 'animate.min.css'. How to specify to parceljs to pick the animate.min.css during production build. or would…
coool
  • 8,085
  • 12
  • 60
  • 80
0
votes
1 answer

Scope hoisting/tree shaking in parcel V2

Do I need to specify the experimental scope hoisting/tree shaking flag (in parcel 2.0) to use tree shaking? parcel build entry.js --experimental-scope-hoisting Or tree shaking is not longer a experimental feature in parcel 2.0?
Mateo Lara
  • 827
  • 2
  • 12
  • 29
0
votes
0 answers

Parcel When I press the onclick event button so, undefined. Why?

I'm building separate components for my personal portfolio using ParcelJS I'm attaching the Project Folder Structure working tree. Also, Remainder that don't worry about public and build folder. If I run the scripts using yarn. It will automatically…
Malik
  • 1
  • 1
0
votes
0 answers

Parcel without Node is possible?

In my HTML, CSS, JS Project I want to bundle to make faster my website, minify and all the features that offer Parcel. How can I use Parcel with the CDN? or i can use that only with npm? I write this because i don't want to deploy an Express server…
0
votes
0 answers

How do I use text content of DOM element to reference a named import?

I'm importing images: import vanilla from 'url:../../img/flavors/vanilla.jpg'; import chocolate from 'url:../../img/flavors/chocolate.jpg'; I have several p tags that list several flavors:

vanilla

0
votes
1 answer

How to import HTML into HTML while build?

I have a project with the following structure: my-site ├── home.html ├── about.html └── shared ├── header.html └── footer.html my-site\home.html: home
Kaustubh Badrike
  • 580
  • 2
  • 15
0
votes
0 answers

not able to install parcel on my windows 10 laptop

I tried to install parcel on my windows 10 laptop, but this happened: $ npm install -D parcel@next npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated…
0
votes
0 answers

Parcel Index.html

Server running at http://localhost:1234\ × No entries found. at Bundler.bundle (C:\Users\badca\AppData\Roaming\npm\node_modules\parcel-bundler\src\Bundler.js:275:17) at async Bundler.serve…
Rishabh
  • 9
  • 1
0
votes
2 answers

How to compile Typescript src file into JS?

I have a simple HTML file with a script src as index.ts. index.html
Grand
  • 175
  • 1
  • 12