Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
0 answers

Create-react-app-parcel-typescript with Jest

I'm using create-react-app-parcel-typescript and want to use Jest. But I get the error: ● Validation Error: Module C:...\polyfills.js in the setupFiles option was not found. Configuration Documentation: …
ComCool
  • 773
  • 4
  • 15
  • 28
0
votes
1 answer

Remove console.logs using Parcel?

Trying to remove console.log statements using Parcel. Here's package.json: { "dependencies": { "jquery": "^3.3.1", "select2": "^4.0.6-rc.1" }, "devDependencies": { "cssnano": "^4.1.9", "parcel-plugin-web-extension": "^1.5.1" …
kareem
  • 690
  • 1
  • 9
  • 20
0
votes
1 answer

Split and organize JS files with Webpack, or Parceljs, or another tool?

Node uses module.exports / require, and ES6 export / import. I tried using Webpack but didn't manage to make my different JS files working together. It is easy to set the bundle.js to have the minified code, but I didn't managed to have as inputs…
Grégory Huyghe
  • 422
  • 1
  • 6
  • 18
0
votes
1 answer

Unable to deploy react app to Netlify: ReactDOM.render throwing an 'unexpected token error'

Netlify is giving me an 'unexpected token error' when trying to deploy a react app, that is driving me crazy. I've been using Parcel as a bundler, and thus far the app was able to run fine while testing in the browser, however it consistently fails…
artysidorenko
  • 43
  • 1
  • 5
0
votes
0 answers

Parcel + Vue multi bundle

I have the following project structure / -- dest/ -- public/ ---- widget.html -- src/ ---- runner.ts ---- runner.scss ---- widget/ ------ components/ -------- ComponentA.vue -------- ComponentB.vue ------ App.vue ------ widget.ts my goal is…
Assaf Moldavsky
  • 1,681
  • 1
  • 19
  • 30
0
votes
1 answer

Parcel: How to make `React` global instead of importing it in every file

I have found out how to make React global using webpack: https://stackoverflow.com/a/32556581/565877 But I am wondering how to make it global for Parcel
Devin Rhode
  • 23,026
  • 8
  • 58
  • 72
0
votes
1 answer

Preact: sometimes blank page upon reload

I am quite new to Preact & TypeScript and bootstrapped an application using parcel-preact-typescript-boilerplate. Everything works fine so far, but I realized that from time to time upon a reload I end up with a blank page. It also happens from time…
0
votes
1 answer

Electron TypeScript Parcel second BrowserWindow

I am creating a second BrowserWindow and loading an html file. HTML file points to a TypeScript file. Therefore, it's giving error. How do I tell parcel to transpile that file to js and load the url in the main process? // main.ts const windows:…
oyalhi
  • 3,834
  • 4
  • 40
  • 45
0
votes
2 answers

Build script of package.json

I have the below folder structure -src --module ---some.js ---another.js --server.js I am using parceljs transpile the .js files The script in package.json looks like this "build": "parcel src/*/*.js --target=node" When I run npm run build,…
neo-technoker
  • 369
  • 2
  • 8
  • 26
0
votes
2 answers

Facing `Cannot find module '@babel/plugin-transform-react-jsx'` while building

I'm facing the following error while building my (previously working) app with bitbucket pipeline: ... [4/4] Building fresh packages... success Saved lockfile. success Saved 1 new dependency. └─ babel-core@6.26.3 Done in 22.08s. …
gazdagergo
  • 6,187
  • 1
  • 31
  • 45
0
votes
1 answer

how do I include files that sw-precache misses

Context I'm using parcel-plugin-sw-precache which wraps around sw-precache to make it work with Parcel.js. Everything was working as expected, and I have been testing my offline app. Problem I added react-pdf.js into my project, one of the…
0
votes
0 answers

Querying an API and redirecting to a results page for a Search bar (component) on a React app

So I'm having this difficulty trying to build my Search component to query data from my API request via Axios. Right now it just populates an alert box. It should do a few things, compare the data from the query with the data from the API, pass…
0
votes
1 answer

trouble with multiple parms and RUN

I'm trying to get Parcel Bundler to build assets from within a Dockerfile. But its failing with: No entries found. at Bundler.bundle (/usr/local/lib/node_modules/parcel-bundler/src/Bundler.js:260:17) at ERROR: Service 'webapp'…
jersey bean
  • 3,321
  • 4
  • 28
  • 43
0
votes
2 answers

Bundled Webextension doesn't see JQuery

I'm creating a webextension for Chrome, the following code leads to an error: $(function () { $('[data-toggle="popover"]').popover(); // ... }); Chrome complains that: Uncaught TypeError: jquery_1.default(...).popover is not a function It…
lhk
  • 27,458
  • 30
  • 122
  • 201
0
votes
1 answer

Parcel error: cannot read property 'walk' of null

When importing HTML files from another HTML file using the Parcel.js builder, I get a mysterious exception: cannot read property 'walk' of null What does this signify?
Jimmy Breck-McKye
  • 2,923
  • 1
  • 22
  • 32