690 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
2
answers
89
views
Parcel Not Bundling Dynamically Fetched HTML Files
I have a simple HTML, CSS, JS app that I'm trying to bundle. I noticed that when using fetch() within an HTML file to insert a partial HTML file like this:
fetch('../partials/header.html')
.then(...
2
votes
0
answers
54
views
DuckDB bundle issue on my Parcel application
I'm working on a Parcel frontend project using DuckDB, and it runs well in the Production environment. However, in my local machine the browser displays this error.
And as I've just mentioned, this ...
3
votes
1
answer
72
views
When I run 'npm run watch:js', it changes app.js file code
I have a Node.js project, and after the Parcel update, I’m running into an issue.
In my ./public/js/ folder I have two files: bundle.js and bundle.js.map.
Previously, Parcel was compiling/bundling the ...
0
votes
0
answers
23
views
The "distDir" output is not showing up for Parcel 2.13.3 "build" execution
I've been trying to get an output from Parcel for quite a while with no luck. Initially, I had a "main" element at the top of package.json. I read that this is not recommended, so in my &...
2
votes
1
answer
92
views
Parcel resolver-glob is not working as expected after upgrading to 2.14.4
I recently upgraded one of my project's ParcelJS from version 2.13.3 to 2.14.4. Everything works as expected, except for the glob imports.
JS
import images from "../../../img/gallery/*.jpg";
...
0
votes
1
answer
43
views
Images not served as image/png but as html/text
Using React 19, Node 18 and Parcel 2, I have React component that is defined this way :
// @ts-expect-error url module is in Node
import myLogo from "../../assets/my_logo.png";
export const ...
1
vote
1
answer
78
views
Invalid path setting in background image of tailwindcss with parcel
I am using parcel with tailwindcss for my project. I have installed parcel, tailwindcss, @tailwindcss/postcss according to the original docs in tailwind. My html tag looks like this:
<div class=&...
0
votes
0
answers
115
views
SVG sprite icon not showing when I deployed the web app
SVG sprite icon not showing when I deployed the web app. On the console when you inspect, they are there, but not showing, I noticed the svg icon has its height x width = 0x0. I don't experience this ...
0
votes
1
answer
71
views
@parcel/transformer-js build failed
I run parcel2 build command:
parcel build src/web/index.html
and I got the following error
➜ my-webapp git:(master) ✗ npm run build-dev
> [email protected] build-dev
> parcel build src/web/index....
0
votes
0
answers
102
views
Parcel Build Failure: "Got Unexpected Null" Error When Exporting a Namespace with Enums
I'm encountering a build error in my package. I've created a minimal reproduction of the issue here: https://github.com/mannam95/ts-export.
Background
I have a namespace called GLOBALENUMS defined as ...
1
vote
1
answer
306
views
Parcel fails to build when there's a "main: false" in a dependency's package.json
I'm using Parcel to build. We recently upgraded to Node 20 LTS (a month ago) so maybe that's something to do with it.
When I run parcel build in a Docker container with a freshly sync'ed down ...
0
votes
0
answers
20
views
Parcel bundler ignores the targets defined through the JS API
We're trying to compose a simple dev setup based on the Parcel bundler. The goal is to build two separate things:
a JS app with entry point at src/app.jsx and output target at dist/js/app.js;
a plain ...
0
votes
1
answer
86
views
`Got unexpected undefined` when using Parcel in a Nix shell
I'm trying to set up a very basic nix shell (using flake) to build a Parcel project.
I have a flake.nix file like this:
{
description = "My Project";
inputs = {
nixpkgs.url = "...
0
votes
1
answer
61
views
Parcel "npm run build:js" changes app.js file and not bundle.js
I have a Node.js project and after the Parcel update I'm running into an issue.
In my ./public/js/ folder I have 2 files: bundle.js and bundle.js.map. Previously Parcel was compiling/ bundling the ...
0
votes
1
answer
65
views
Getting error "non-top-level require() call" with no require() beign used
I'm trying to move a web made with vanilla JS to node.js and I'm getting this error using Parcel2:
@parcel/transformer-js: Conditional or non-top-level `require()` call. This causes the resolved ...