Questions tagged [parcel]

In Android, a Parcel is a container for a message (data and object references). It's a high-performance alternative to Java's standard serialization.

This should not be confused with That Parcel is an application bundler for HTML, CSS, and Js

537 questions
3
votes
3 answers

Parcel Serve returns 404 due to adding hash to index.html

Started using parcel for the first time. I've setup parcel in my project and ran the parcel serve src/index.html. The build succeeds, but when I go to the url, I get a 404 error: When I inspect the dist folder I find my files there, but the index…
Audacitus
  • 125
  • 8
3
votes
4 answers

How to create from parcel with Kotlin @Parcelize?

I'm trying to migrate parcelable model from Java to Kotlin. My model looks like this: import kotlinx.parcelize.* @Parcelize class SignatureAuthorityModel (var id: Int, var cloudId: Int, var uuid: UUID?): android.os.Parcelable { …
Crazy Sage
  • 414
  • 2
  • 14
3
votes
1 answer

parcel serve works but parcel build does not

I'm setting up a new project with Parcel, TypeScript, and SolidJS. With the exception of TypeScript, I'm fairly new to this tech stack. I've gotten the ts and tsx targets building exactly the way I want, but the html file is giving me a…
p.s.w.g
  • 146,324
  • 30
  • 291
  • 331
3
votes
0 answers

Single SPA - Handle error in nested micro front end

MFE = micro-front-end I'm trying to import 1 MFE to another MFE. MFE-food calls MFE-cart. When MFE-cart is down, there is an impact on MFE-food, my expectation is MFE should run properly. in root-config, I have added addErrorHandler(err => { if…
Vzans
  • 91
  • 1
  • 6
3
votes
4 answers

Parcel localhost server not updating

I am using the parcel (v2.0.1) localhost server with hot module replacement to develop a simple HTML/SASS/JS-based web app. The HMR is working fine most of the time, but from time to time, especially when making significant changes to the code, ALL…
Arno Nimous
  • 53
  • 1
  • 5
3
votes
0 answers

ParcelJS v2 less error: Inline JavaScript is not enabled. Is it set in your options?

I'm trying to run parcel watch on some files which use rsuite dependency but always end up getting this error: @parcel/transformer-less: Inline JavaScript is not enabled. Is it set in your options? I already tried installing older versions of less,…
OG Newbie
  • 45
  • 3
3
votes
1 answer

Typescript + Parcel new JSX transform - React is not defined error

I've updated to React 17+ and am now getting a React is not defined issue when removing import React from 'react' statements from typescript TSX and JSX files. How can I fix this?
ermish
  • 1,160
  • 2
  • 13
  • 26
3
votes
2 answers

import a SCSS file as a CSS string using Parcel, SASS and TypeScript

Is there a way to import SCSS as CSS using Parcel Bundler + SASS + TypeScript? I have a SCSS file called file.scss div { span: { background: red } } so I want to import it as a CSS string in TypeScript, I'm tryng something like…
3
votes
1 answer

parcel failed with css-loader.js: Invalid Version: undefined error

Have a small project. One html + css +js. I wanted to add parcel to it. Install it ( I don't have any more packages besides parcel). in the package.json I did: "scripts": { "start": "parcel index.html" }, When I run npm start gives and…
Ricardo Moreira
  • 947
  • 1
  • 9
  • 20
3
votes
2 answers

android nested object parceling

how can we parcel nested object in an intent?. For example lets say there is an object A which contain one string variable and one another object B. now B contain object C . C contain a list of string. so how i can parcel object A in an intent. any…
user484155
3
votes
1 answer

Difference between npm run dev and parcel index.html

I can use parcel index.html to create a local development server, bundling and hot module replacement. But it have come to my attention that using npm run dev does kind of the same think, so my question is: what is the difference between the two?…
Mateo Lara
  • 827
  • 2
  • 12
  • 29
3
votes
1 answer

Adding Autoprefixer to a Svelte & Parcel project?

I can't seem to get autoprefixer to work with Parcel and Svelte. I have the below code in a 'svelte.config.js' file but it doesn't seem to be working even though it is not throwing any errors. Sass is being compiled correctly and I have a…
Timmy Lee
  • 785
  • 1
  • 11
  • 25
3
votes
1 answer

Parcel Bundler & React Server Side Rendering

I am trying to use Parcel Bundler as the bundler of my client files when I use React Server Side Rendering. I have used the Parcel Middleware and assigned it with the location of my client entry point. When I start my script, it shows that Parcel is…
Ali
  • 846
  • 1
  • 13
  • 28
3
votes
1 answer

Is there an option in the tsconfig to compile a server and client to a public and private folder?

I have a typescript project and I have the following file structure builds -dev --public --private -production --public --private src -server -client tsconfig package.json I want my src/server to compile to the private folders in build and the…
Michael
  • 355
  • 1
  • 8
  • 17
3
votes
3 answers

React not refetching expired cached files

I hava a react app (no CRA), using code splitting with the help of parcel-bundler. When I click around in my app, it will fetch each of my js files once and cache them in the browser, basically injecting script tags in the header. So when I go to my…
Majoren
  • 983
  • 5
  • 16
  • 36