Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

407 questions
7
votes
2 answers

Why does my parcel-bundler fail even on the simplest things?

So as I say in the title I'm having a simple index.html file that has a to import my styles. When I run the parcel index.html I get an error that says…
captain
  • 1,597
  • 4
  • 17
  • 29
7
votes
0 answers

How to resolve alias in Parceljs?

I'm migrating from Webpack to Parcel and I use folder aliases like this in my component: import * as authActions from 'actions/authActions'; I get this error: Cannot find module 'actions/authActions' The weird thing is, it only shows when using…
Vlady Veselinov
  • 2,871
  • 2
  • 16
  • 42
7
votes
2 answers

Is there a way to proxy requests in Parcel as in Webpack?

In Webpack there is an ability to proxy backend requests through proxy setting in the config file. That allows me to develop a front-end part of my app with webpack-dev-server with HMR while webpack-dev-server and my app server run on different…
Andrew Lukjanov
  • 513
  • 1
  • 7
  • 16
6
votes
1 answer

Is there a way to parcel a nodejs app which uses express and ejs?

I am trying to parcel my nodejs app which uses epxress and ejs but I am getting a parcel error during the process My app already runs as expected if I use the standard way: node app.js However, when I try to run it with parcel I am getting an…
vagvaf
  • 69
  • 1
  • 5
6
votes
3 answers

Adding Autoprefixer in parcel.js for deployed website broke all website styles?

I have a deployed project built with the Parcel.js bundler. After applying CSS Autoprefixer and redeploying the website almost all of my website's styles are broken. I'm really not sure what has caused this and unfortunately I could not find even…
Ikai Yanasaki
  • 139
  • 1
  • 7
6
votes
2 answers

chrome 72 changes sourcemap behaviour

I'm developing a Webextension for Chrome, the code is written in Typescript, so I need sourcemaps. The extension is bundled with ParcelJS, but I believe that my problem is not related to the bundler. After updating from Chrome 70 to 72, sourcemaps…
6
votes
2 answers

post css autoprefixer issue on parcel not showing prefixes

Autoprefixer not working on parcel 1.9.7: I have my src folder and I have .postcssrc file and styles file in the same folder content inside the .postcssrc file: { "plugins": { "autoprefixer": true } } parcel was installed with npm install -g…
user9013856
  • 199
  • 1
  • 9
6
votes
1 answer

Webpack vs Parcel

What is advantage and disadvantage between webpack and parcel Webpack: https://webpack.js.org Parcel: https://parceljs.org
Shiva
  • 301
  • 1
  • 2
  • 14
6
votes
0 answers

Parcel Bundler - handle scss without resolving any urls in my sass

It's great that ParcelJS just handles sass out of the box but I'm running into a problem where it keeps throwing an exception when it encounters a url within in my scss file. I guess Parcel is trying to locate the resource and rewrite the url. I…
Francisc0
  • 858
  • 1
  • 12
  • 26
6
votes
1 answer

Expose Environment in Parceljs?

I'm trying to expose a variable when building with Parcel.js, similar to the Webpack DefinePlugin but I haven't found out how to do it. In development I want my API host to be different from my production one,…
5
votes
0 answers

How do you use an SVG inline in React using Parcel 2?

Previously in Parcel v1 you could just use something like the @svgr/parcel-plugin-svgr plugin for Parcel. This would give you the ability to use SVGs inline like when using CRA: import Star from './star.svg' const App = () => (
JosephScript
  • 164
  • 2
  • 6
5
votes
1 answer

How to build assets separately from the rest of the app with Parcel

I have a project that I am building with parcel. Since it is mostly static, I only have some files that should be updated once a day, I put the project on aws s3 bucket. I am thinking of updating the files that should be updated once a day, with a…
Leff
  • 1,744
  • 11
  • 63
  • 133
5
votes
1 answer

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: Cannot read property 'type' of undefined at Bundler.createBundleTree…
Anatoly Leonov
  • 369
  • 1
  • 10
5
votes
2 answers

Why do I get a "df.worker.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type"

I try to use pdfjs in a small typescript app with parceljs as bundler, but when I load the worker with: pdfjsLib.GlobalWorkerOptions.workerSrc = '../../node_modules/pdfjs-dist/build/pdf.worker.min.js'; I get this error in the Firefox…
Jørgen Rasmussen
  • 821
  • 10
  • 24
5
votes
1 answer

How to use Express with Parceljs middleware in Production

I am using Parcel middleware with express as explained here: https://parceljs.org/api.html#middleware When I run this in production I don't want hot-module replacement to be turned on. How can I set this up so that it works in dev with HMR and in…
Daryn
  • 2,493
  • 4
  • 26
  • 38
1
2
3
27 28