Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
1 answer

how to install only package.json dependencies with their own versions by using npm install or yarn

I work on a new project, but I can't install packages correctly. I used npm install, yarn, npm install --only=dev, but there aren't enough. I also try like that deleting node_modules and package-lock.json. The state was the same. We use in the…
yellowpisagor
  • 146
  • 3
  • 13
0
votes
1 answer

Can I import everything from a javascript library with parcelJS?

I recently started using parcelJS to build and I'm pretty new to Webpack and such tools. I use the highlighJS library to highlight some syntax on my page and I'm importing it using the line below. import hljs from 'highlight.js/lib/highlight'; This…
Farzan
  • 607
  • 1
  • 8
  • 27
0
votes
0 answers

parcel.js project. web components do not work on IE 11

Here is my project: https://github.com/march23hare/parcel-scaffolding-web-components/tree/test-custom-elements My goal is: Using Parcel.js bundler. Vanilla JS and Web Components are the major tech-stack. Support IE 11. So I make a configuration…
0
votes
1 answer

.on is not a function error when trying to upload file with superagent on parcel

Having this set up using superagent this.acceptContentType = "application/json"; req = Request.post(absoluteUrl) .timeout(config.runtime.apiTimeoutMs) .set('Accept', this.acceptContentType); req.attach('files', file, file.name); When running…
thsorens
  • 1,308
  • 12
  • 21
0
votes
1 answer

building with Parceljs and React?

How can I get Parceljs to work with react? I'm using their example from their repo but it wont work. https://github.com/parcel-bundler/examples After I run 'npm start' it works and renders the page on localhost as expected but it will not work when…
nameless
  • 59
  • 3
  • 9
0
votes
0 answers

Uncaught TypeError: Cannot redefine property: UIRouter

I got a problem using parceljs and uirouter with react. When I go to the command line and write parcel index.html everything goes fine, but when I go to the browser, nothing appears in the browser and when I go to the console it throws this error:…
Josue Toledo
  • 349
  • 2
  • 3
  • 8
0
votes
1 answer

Importing predefined functions into an ES6 module

Part 1: In my master .js file, I have a couple of shortcut functions set up: // Selector shortcuts - mimic jQuery style selectors but using more modern, standard code const $ = ( selector, scope = document ) => scope.querySelector( selector…
jono_hayward
  • 183
  • 1
  • 2
  • 10
0
votes
1 answer

Unhandled 'error' event

I am trying web application bundler parcel and doing as per Github description. My html and javascript files are below. my parcel index.html gives below error, Error: watch /node_modules/babel-plugin-transform-react-jsx-source ENOSPC at…
Kuldeep
  • 83
  • 1
  • 9
0
votes
1 answer

import datatable in parceljs

I'm trying to import the datatables (along with jquery and moment) with parceljs. I've used the workaround in this answer to import jquery. Here are my files: In index.html: …
XoXo
  • 1,560
  • 1
  • 16
  • 35
0
votes
1 answer

Loading precompiled bundles at runtime in a JS application

Currently, I have a React application built with Webpack 1.15.0. I want to load into my application one or more precompiled bundles at runtime, like in a plugin system. The main application doesn't know the names of these bundles, but it knows that…
0
votes
1 answer

Preact and Parcel - Routing issue after bundling

I've been seeking for a solution to this for over a month now. I've built a personal landing page using parcel-bundler and preact. I am also using preact-router to handle my routing. Here's some code. Main App Component class App extends Component…
jsdev17
  • 1,050
  • 2
  • 15
  • 25
0
votes
1 answer

My scss files wont load on github html pages for some reason

new to programming and I wanted to post my portfolio site on github. My index pages shows up but some of pictures and all of my scss files wont show up. Any help would be greatly appreciated. Here's a link to the repo…
0
votes
1 answer

How can I import a typescript-generated module by name from within Javascript?

I want to import a function from a typescript-generated module into javascript's global namespace. Here is my typescript module foo.ts: export const fooFn = (): string => { return "hello"; }; Here is my HTML file:
w.brian
  • 16,296
  • 14
  • 69
  • 118
0
votes
1 answer

Parcel-Angular5 : How do I add SCSS/SASS support?

I have a project started with angular cli. I want to use scss. In WebStorm's terminal, I typed : ng set defaults.styleExt scss I renamed all the .css files to .scss and changed the imports : @Component({ selector: 'app-logged-in', templateUrl:…
tatsu
  • 2,316
  • 7
  • 43
  • 87
0
votes
1 answer

Parcel React 16 & Per-Component SCSS

How do I set up an environment with parcel where each component has it's own, compartmentalized, SCSS style file that do not interfere with each other (E.G. you can even have the same class names in two files and they won't apply to both elements on…
tatsu
  • 2,316
  • 7
  • 43
  • 87
1 2 3
45
46