Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
1 answer

(Beginner Question) facing errors when trying to install parcel.js

I'm new to programming and facing some difficulties when trying to install parcel.js Here are the errors I'm getting: npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues.…
0
votes
3 answers

How to deploy our app which is running on parcel bundler

In my recent project, I have made an animated website using gsap and parcel-bundler. When I want to run it, I will type parcel index.html or npm run dev and it will start a server on port 1234, making it accessible at http://localhost:1234/. Can…
Nithin
  • 21
  • 2
  • 6
0
votes
1 answer

Imported ES6 module is not executed after processing in parcel

When using vanilla JS module.js console.log("modulejs"); const a =1; class Test{ } export {Test} index.js import {Test} from "./module.js" I get the console.log message just via importing a class. But when working with parcel on my TypeScript,…
J. Doe
  • 522
  • 6
  • 22
0
votes
1 answer

Preact + Jest: "moduleNameMapper" and "moduleDirectories" configs not registering

I'm trying to set up a project with Preact, Parcel, Typescript, and Jest. I have the following in my package.json in order to use absolute paths for my imports: "alias": { "src": "./src" }, This lets me import my files like import sum from…
jaxreiff
  • 503
  • 1
  • 4
  • 14
0
votes
2 answers

How to reuse a navigation bar across different .html pages with CSS and JS?

In total, I have 3 pages: index.html, sketch.html and user-profile.html. All of them have the same navbar (I just copied and pasted the nav element for now), but I now realize that this is not the best idea. The navbar has its position on the screen…
kibe
  • 90
  • 1
  • 8
  • 26
0
votes
1 answer

How to lazy load components to React router dom Route component?

I have this: I thought about doing: { import('path/to/component').then(Module => { return
Raz Buchnik
  • 7,753
  • 14
  • 53
  • 96
0
votes
1 answer

How do I bundle JavaScript and CSS dependencies locally for offline use?

Potential similar question here. I'd like to build a simple in-browser app that can run without an internet connection. To develop a Python project, this isn't even a question. You just pip install whatever in your favorite virtual env and run…
0
votes
1 answer

PIXI.js loading the same image multiple times when using a base URL

I'm developing a game with PIXI.js that will be hosted on URL X and loaded on another website with URL Y. In order to accomplish this, I use a BASE_URL environment variable that is '' when local, and 'https://something.web.app' when not local. So, I…
Jeff Huijsmans
  • 1,388
  • 1
  • 14
  • 35
0
votes
1 answer

Importing all json files from a directory not working

I have a vanilla js project that I am building with parcel. In project I have a directory with a lot of json files that I would like to use in one of my modules. I have tried to import them like I would import js files but that didn't work. import *…
Leff
  • 1,968
  • 24
  • 97
  • 201
0
votes
3 answers

Parcel.js. Error EPERM: operation not permitted, rename Cache

I'm using Parcel.js. When I'm trying to run Parcel and build my project via yarn parcel ./src/index.html the EPERM error happens regarding parcel cache. The error Error: EPERM: operation not permitted, rename…
Velidan
  • 5,526
  • 10
  • 48
  • 86
0
votes
1 answer

React built application referencing files incorrectly with Parcel and CRA

UPDATE: I found out that the index.html is linking the files incorrectly like it doesn't recognize where the files are stored. I corrected the css link tag in the header of my bundled document but Now I am getting errors with JavaScript still and I…
Marco Chavez
  • 209
  • 1
  • 11
0
votes
1 answer

FontAwesome 5 - $fa-font-path not taken into account

My FontAwesome icons won't work because the $fa-font-path variable is not taken into account while building my fontawesome.scss file. Step 1: I installed FontAwesome 5.13 via npm npm install @fortawesome/fontawesome-free --save Step 2: I edited my…
Bruno Leveque
  • 2,647
  • 2
  • 23
  • 33
0
votes
1 answer

Problems trying to install using npm: "core-js@<3 is no longer maintained"

I've been following along with a web dev tutorial and I'm stuck at this part: https://btholt.github.io/intro-to-web-dev-v2/libraries#building-your-code I've been trying for a couple of days to install parcel-bundler and can't figure out what I'm…
coddswaddle
  • 13
  • 1
  • 7
0
votes
1 answer

Parcel not loading .scss files

Currently my react project using parcel is not loading .scss files. I have tried different suggested solutions, like installing sass, node-sass or even dart-sass but none of those have worked for me. .babelrc { "plugins":…
frarr
  • 1
  • 4
0
votes
1 answer

Issues with IE11 when using lit-html

I am working with lit-html templating library, ParcelJs bundler using Typescript, compiling in to ES2019. With such I am creating a js library to be consumed by consuming applications. This works great on most browser excepts in IE11. I get the…
amateur
  • 43,371
  • 65
  • 192
  • 320