Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
8
votes
1 answer

Parcel Bundler: import scss files from node_modules without specifying the full path?

Currently, I import scss files like this: @import './node_modules/bulma/bulma'; However, in Laravel Mix I learned that I could just import the files like this, without specifying ./node_modules: @import '~bulma/bulma'; Anyway I could do this in…
Joshua Leung
  • 2,219
  • 7
  • 29
  • 52
7
votes
1 answer

@parcel/core: No transformers found for .glb file

I'm getting this error when I deploy my parcel.js to Vercel: @parcel/core: No transformers found for static/actions.glb. Here's the full deployment logs from Vercel: Detected package.json Installing dependencies... Detected `package-lock.json`…
awawawaw
  • 175
  • 3
  • 11
7
votes
4 answers

ParcelJS bundling error - favicon.ico: Invalid Version: undefined

This is the first time I am using ParcelJS. I npm it following their instruction everything looks good. So it would be the latest version. As soon as I run it against my project (a .html file with some js and css attached to it), I get this…
Tom
  • 15,781
  • 14
  • 69
  • 111
7
votes
3 answers

How to serve a json file with parcel without bundling it?

I'm making a project with parcel and typescript. It works great, but for one library I'm using, I would need to host a bunch of .json-files at a fixed directory: The files look as following: index.html index.ts tiles/ | file.json | file0.json |…
Pieter
  • 777
  • 5
  • 17
7
votes
3 answers

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…
alaptiko
  • 499
  • 3
  • 14
7
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
  • 99
  • 1
  • 7
7
votes
1 answer

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
  • 4,678
  • 5
  • 23
  • 49
7
votes
1 answer

Webpack vs Parcel

What is advantage and disadvantage between webpack and parcel Webpack: https://webpack.js.org Parcel: https://parceljs.org
Sivaraj-v
  • 371
  • 1
  • 3
  • 17
7
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,…
6
votes
3 answers

How to import HTML as a string with ParcelJS

I'd like to import HTML files as a string with ParcelJS, like this: import testHTML from './testHTML.html'; document.body.insertAdjacentHTML('afterbegin', testHTML); But the docs say: Importing HTML in JavaScript does not statically include the…
docta_faustus
  • 2,383
  • 4
  • 30
  • 47
6
votes
3 answers

avoiding the import "regenerator-runtime/runtime"

I am using Parcel to bundle my project and jest to run my tests. Everything works fine, but on tests that I have the async/await keyword, I had to import regenerator-runtime/runtime Like this: import "regenerator-runtime/runtime" test("read armored…
Rodrigo
  • 135
  • 4
  • 45
  • 107
6
votes
0 answers

how to configure types for Typescript and Vue 3.0 (bundler and runtime compilation)

I'm following the Vue getting started guide, and would like to make this simple example work: HTML:
Counter: {{ counter }}
Typescript: const Counter = { data() { return { counter: 0 } …
lhk
  • 27,458
  • 30
  • 122
  • 201
6
votes
3 answers

How to add a favicon to a static webpage made using parcel.js?

I'm using parcel.js to build a basic static website (so HTML, CSS and front end JS only, but node / npm / parcel.js used for building). I'd like to set a favicon. What's the best / simplest way to do this?
phhu
  • 1,462
  • 13
  • 33
6
votes
0 answers

Possible to bundle remote assets with ParcelJS

Is it possible to bundle external resources linked with absolute URLs to the dist folder with Parcel? This bundles and hashes fine to What i'd like to do
benpalmer
  • 2,057
  • 3
  • 17
  • 21
6
votes
1 answer

Importing CSS from node_modules with Parcel

I am currently migrating as React project built with Webpack into Parcel as an experiment to see what the hype is all about. The project uses Reactstrap, which has Bootstrap as a dependency. I have a main.tsx file that is the "shell" for most of the…
Vidya
  • 29,932
  • 7
  • 42
  • 70
1 2
3
45 46