Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
1 answer

Is it possible to use deep/child css selectors with parcel like possible with vue-loader?

I'm trying to get a child/deep selector going within SCSS. However the output css is not as expected. This issue is similar to How do I use /deep/ or >>> in Vue.js? However they use webpack and vue-loader rather then parcel. I've tried: .example >>>…
Lucas T
  • 1
  • 1
0
votes
1 answer

How to bundle javascript using Parcel in Electron?

I'm using https://github.com/parro-it/electron-parcel-example to use Parcel with Electron. My project is https://github.com/patrykkalinowski/dcs-frontlines-electron I have basic setup where renderer.js is served by Parcel correctly: renderer.js: //…
Patryk
  • 197
  • 1
  • 16
0
votes
1 answer

Why might a parcel command fail when run from an npm shell script, but not when run directly?

I have the following prod script I've used previously on another, very similar project: #!/usr/bin/env sh GCC=$(npm bin)/google-closure-compiler preGccBuildSteps () { rimraf prod dist && mkdir prod && ln -sfn ../../css prod/css && \ spago…
bbarker
  • 11,636
  • 9
  • 38
  • 62
0
votes
2 answers

Cannot read property 'db' of null javascript with parcel

I tried to set up a mongodb system with my openlayers map, but it is not working : Uncaught TypeError: Cannot read property 'db' of null. My part of code about mongodb is : var MongoClient = require('mongodb').MongoClient; var url =…
Falseee
  • 79
  • 10
0
votes
1 answer

Parcel vue debugging: How can I map the output of parcel serve to my source code?

When I serve my Vue js app, I'm using parcel serve index.html In the app, I placed a debugger keyword. When running the app and open the dev tools in chrome I got something like this It stops at some random line while I actually wanted to debug on…
otong
  • 1,387
  • 2
  • 17
  • 28
0
votes
1 answer

× Trying to run parcel index.html No entries found at Bundler.bundle

Trying to run parcel index.html No entries found at Bundler.bundle() parcel index.html Server running at http://localhost:1234 × No entries found. at Bundler.bundle (file_location of bundler)
0
votes
1 answer

Can parcel compile to ES5 including all dependencies?

Prepare these two files. package.json { "dependencies": { "lit-html": "^1.1.0" }, "browserslist": [ "IE 11" ] } index.js import {html, render} from "lit-html" const foo = () => {} Then, build them with parcel. parcel build…
blz
  • 837
  • 7
  • 20
0
votes
1 answer

ParcelJs add extra "/" before all files link

I'm actually working on a ts project with ParcelJs. When I build my project and open it on the ParcelJs server on http://localhost:1234/ everything work great. But when I try to open it outside this server all my files are not found because there is…
johannchopin
  • 13,720
  • 10
  • 55
  • 101
0
votes
2 answers

vuejs component hides everything after if not put inside a div

I started using vuejs with parcel. I have a main component App.vue from which I call a subcomponent Hello.vue using in App's template. I have a weird bug if I don't put the inside a div tag, everything that comes after in html…
Amine SOUIKI
  • 126
  • 6
0
votes
1 answer

Uncaught TypeError: (0 , _module) is not a function

I'm using parcel, and I'm trying to use ES6 import and export syntax. Parcel seems to run babel underground, I'm very new to it. When openimn the index.html placed on "dist" folder it does not render well and shows this error in console: "Uncaught…
0
votes
1 answer

Getting Parcel Bundler Code Splitting working with React + TypeScript + MobX + ReactRouter

I've been trying to get Parcel Bundler to code split a ReactJS project for a while with no success, this project also used TypeScript, ReactRouter and MobX for its state management. I've been meaning to put a boilerplate sample together and ask for…
API
  • 125
  • 2
  • 12
0
votes
2 answers

How to stop local server with Parcel bundler

I am using API of Parcel bundler to build and start a local server. const Bundler = require('parcel-bundler'); let entryFile = ...; let options = ...; (async function() { let bundler = new Bundler(entryFile, options); let b = await…
Luka
  • 2,779
  • 3
  • 17
  • 32
0
votes
1 answer

How to preserve error colors instead of all red using Elm

Is it possible to keep original colors of Elm errors in console, because they contain important information? Parcel turns all of them red, what makes it impossible to see where the actual record errors are.
jligeza
  • 4,544
  • 6
  • 23
  • 31
0
votes
2 answers

Trying to run npm run dev "No entries found."

When I'm running "npm run dev" it gives me this error: Server running at http://localhost:1234 No entries found. at Bundler.bundle (/Users/igoraccebas/node_modules/parcel-bundler/src/Bundler.js:275:17) npm ERR! code ELIFECYCLE npm ERR! errno…
Igor Voytt
  • 97
  • 2
  • 9
0
votes
0 answers

Cannot run parcel command

I am trying to run parcel. I keep getting the following errors. npm run start frontend@1.0.0 start /Users/laurasaydeh/Desktop/dragonstack/frontend parcel index.html sh: parcel: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR!…