Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
1 answer

Optimizing images using parcel 2

I want to optimize my images dynamically using the Parcel 2 built in image optimizer. The image url is coming from the data.js and then I pass it to render it. When I use this code, it's working: _generateMarkupProjects(project) { const imageUrl =…
J.Wujeck
  • 280
  • 4
  • 16
0
votes
1 answer

Parcel fails to resolve 'solid-js/jsx-runtime' for TSX files

I'm migrating a React Webpack project into a SolidJS Parcel project. However, the combination of SolidJS and Parcel seems to have problems with nested Typescript projects, which combinations of React and Webpack do not have. In my minimal example…
Martin
  • 598
  • 1
  • 4
  • 27
0
votes
2 answers

Phaser 3 - Images not showing

After searching for a bit and finding others having somewhat of the same problem, but no solution for me, I figured it was my turn to seek help. I have npm along with parceljs setup for webserving (I'm new to these but I'm quite confident it's…
0
votes
1 answer

A constructor from a node module I'm importing works when using Create React App, but errors in ParcelJS. What is going on?

I'm converting a project that was built using Create React App to use ParcelJS as a bundler instead. Strangely, a dependency that I imported during development (@twilio/voice-sdk) works fine in the CRA version of the application, but I get the…
ricky
  • 242
  • 1
  • 9
0
votes
1 answer

TailwindCSS3 & Parcel2 - Issue getting tailwind to build

I'm using Parcel through the API directly, via the following config: import { Parcel } from '@parcel/core'; export default new Parcel({ entries: 'src/index.html', defaultConfig: '@parcel/config-default' }); I'm using a postcss.config.mjs and…
methodical
  • 126
  • 10
0
votes
3 answers

Cannot run Parcel in my project (Parcel does not create dist with compiled file)

Please help me figure out the problem. I can not understand the essence of the error and how to fix it. I initialize the project: npm init -y Install Parcel: npm install --save-dev parcel I create src directory with an index.html file. When I run…
Seva Sleva
  • 49
  • 4
0
votes
2 answers

Unable to transpile ES6 express server using Parceljs in development mode

I am trying to transpile an ES6 express app using Parceljs. Trying to run the parcel dev server using yarn parcel index.js displays that it is running at localhost:1234 but the page is blank. It also generates the following output when trying to run…
Rashiq
  • 317
  • 1
  • 4
  • 13
0
votes
1 answer

styled-components only rendering certain styles after successful build with parcel

I have a widget that I am embedding on other website, built in React with styled-component. I build it into one js file with parcel and then serve that script in order to embed the widget. The problem is that not all of my styles are reflected in…
crevulus
  • 1,658
  • 12
  • 42
0
votes
0 answers

Parcel Bundler crashes while bundling PNG

I am making a game with Pixi.js and matter-js libraries. I am using Parcel Bundler (version 2.3.1) for HMR and bundling. The dev server works fine but when bundling for production the process crashes with following result: /c/Program…
Paltze
  • 57
  • 1
  • 5
0
votes
0 answers

Is there something wrong with my Phaser setup?

Im setting up my environment for my first PhaserJs project. The document loads but not the Phaser code, i checked my devtools and seeing this error. Im using VSCode an installed Phaser using npm and parcel. Uncaught ReferenceError: AUTO is not…
Brando
  • 1
0
votes
1 answer

Parcel - Invalid Config from config-default?

Hi everyone! Recently I'm running into an error when trying to run my React app in Parcel that says I have an invalid config for the compressor, but I haven't changed anything from the default configurations. I've tried reinstalling but the same…
cjwe
  • 1
  • 2
0
votes
1 answer

HTML loads, but scripts don't run

I've this script compiled through Parcel: /src/Main.ts import { app, BrowserWindow, Menu } from 'electron'; alert('Hi'); document.title = 'Xxx'; console.log('Hello'); Entry HTML for Parcel: /src/Main.html
user5066707
0
votes
1 answer

How to my npm package in a way such that people can load it from JSDelivr?

I'm writing an NPM package in typescript for learning purposes. I configured my parcel set up so it exports two kinds of builds, an ESM build and a CJS one. I published it to npm and I can install and use it fine in an ESM-module environment or a…
Nethrenial.
  • 558
  • 1
  • 5
  • 15
0
votes
1 answer

Lit: nested template doesn't render

I have a really simple template and a simple nested template. Unfortunately, my nested template doesn't render anything. I followed the example defined at: https://lit.dev/docs/components/rendering/ This is my container template. import…
stackcen
  • 99
  • 8
0
votes
0 answers

Avoid typescript errors due to parcel aliases?

I am starting a webapp using preact with typescript and parcel as a bundler. I'd like to avoid using preact-specific imports, so (as per the parcel docs) I added this parcel-specific configuration to my package.json: "alias": { "react":…
eekboom
  • 5,551
  • 1
  • 30
  • 39