Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

407 questions
5
votes
1 answer

Parcel + Babel not transpiling ES6 from node_modules?

I can't seem to get Babel to work with Parcel, although the presets are being installed automatically. It works locally and in Chrome, but it's not transpiling node_modules es6 files, so the output still has const/let/... and it cannot run in…
Kevin Van Ryckegem
  • 1,791
  • 3
  • 20
  • 48
5
votes
1 answer

regeneratorRuntime is not defined in TypeScript run in web

I play a demo with Vue.js + TypeScript + Parcel, and try async/await in index.ts . index.html ... index.ts console.log('Not see me') (async () => { console.log('Did not execute here…
junlin
  • 1,243
  • 16
  • 28
4
votes
0 answers

how to handle output files in parcel

I have a project with this structure: src |- index.pug | - layout | |- index.less | - scripts | |- index.js For now, when I run parcel build src/index.pug, all the files are bundled and I've got this on the distribution folder: dist …
4
votes
1 answer

How can add all files in public directory to the build directory with parcel-bundler

I use parcel-bundler on a react app. But I realized I need to redirect all files index.html using HTTP files but when I add a .htaccess file to my public directory. It's not added to the dist folder after building the project. How can I achieve this…
iamafasha
  • 592
  • 5
  • 18
4
votes
2 answers

What is the .cache folder in parcel-bundler? Is it necessary to push the .cache folder to Github?

What is the .cache folder in parcel-bundler? Is it necessary to push the .cache folder to Github ?
Llawliet
  • 43
  • 3
4
votes
1 answer

AWS Amplify TypeError: S3 is not a constructor when bundling with Parcel

I am using the AWS Amplify Storage module to store and retrieve user files using the JavaScript API. When I serve or build with Parcel, the following error message is printed to the console: TypeError: S3 is not a constructor at…
bgins
  • 141
  • 6
4
votes
0 answers

Parceljs / PostHTML - keeping .htm files from being renamed to .html

When building through parcel .htm files, the output is .html files. I much rather just keep the .htm files as output files, but couldn't figure out a way to do it in either Parcel or PostHTML which is being used by parcel. I've updated an old static…
shukshuk
  • 941
  • 5
  • 21
4
votes
1 answer

Deploy to Netlify fails with Parcel.js

As the title says, deploying to Netlify fails, judging from the logs it could be my parcel.js setup. The error in the logs are: 12:19:29 AM: Error running command: Build script returned non-zero exit code: 127 12:19:29 AM: Failing build: Failed to…
CalAlt
  • 1,145
  • 2
  • 9
  • 24
4
votes
2 answers

Parcel multiple entry points for Google Chrome extension

I'm creating a new Chrome extension. I introduced Parcel bundler for module bundling and TypeScript support. I want build /src /background-script index.ts /browser-action index.html index.ts /content-script …
ChelChel
  • 93
  • 4
4
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
  • 28,359
  • 6
  • 36
  • 63
4
votes
1 answer

How to fix permission error while installing Parcel Bundler with terminal

while installing parcel module in nodeJS, via terminal on Mac OS i am getting permission error. error: checkPermission Missing write access to /usr/local/lib/node_modules i am new at learning Node Modules. i tried installing(Node , NPM) everything…
4
votes
1 answer

Dynamic locals unavailable with Pug and Parcel

I have an Express app using Pug templates and Parcel for my bundler. According to the Parcel docs, I can have a config file that stores my locals pug.config.js, however, I need to dynamically add locals to my templates at runtime. Is it possible to…
McLovin
  • 1,139
  • 3
  • 15
  • 30
4
votes
0 answers

parceljs : how to merge files?

Is it possible to merge JS files (or CSS files) with parcel ? Title
yarek
  • 8,962
  • 25
  • 93
  • 180
4
votes
1 answer

Error: HTML onClick not defined with Node.js, NPM and Parcel

I am making a weather application. To develop this I am using Node.js with NPM and Parcel. (I need to do this, because otherwise OpenLayers won't work, but I have not worked with it before.) I need to be able to work with user-input. For example I…
Trisha
  • 75
  • 6
4
votes
0 answers

Error when importing images in SSR React App: "SyntaxError: Invalid or unexpected token �PNG"

I'm trying to run SSR React (16.3.0) App using simple express server. After building and running babel-node server.js got error regarding imported PNG file: /home/dev/test/src/assets/bg.png:1 (function (exports, require, module, __filename,…
1 2
3
27 28