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…
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…
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…
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…
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…
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…
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…
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…
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,…
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 = () => (
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…
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…
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…
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…