I have been trying to add image in react. I'm not using webpack, I'm using parceljs. Also using typescript I have try: import image from path/to/image.png <img src={image} /> inside react component: try: <img src="path/to/imag...
The plugin that fails is @babel/plugin-transform-regenerator (no marginal plugin, 1.6 milion downloads / week). This is my entire .babelrc: { "presets": [], "plugins": [ "@babel/plugin-transform-regenerator" ] }...
I'm migrating from Webpack to Parcel and I use folder aliases like this in my component: import * as authActions from 'actions/authActions'; I get this error: Cannot find module 'actions/authActions' The weird thing is, it onl...
I try to use pdfjs in a small typescript app with parceljs as bundler, but when I load the worker with: pdfjsLib.GlobalWorkerOptions.workerSrc = '../../node_modules/pdfjs-dist/build/pdf.worker.min.js'; I get this error in the Firefox conso...
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 exampl...
I have read lots of tutorials and looked at some repositories and still didn't get what I wanted. For example, this repo uses Cheerio (server-like jQuery) and React Helmet. But I want to setup my app with only Parcel, React, ReactDOM, React Rou...
I'm using parcel-plugin-vue to compile the simplest possible .vue component from a file. Compilation runs, no errors, but a blank page displays with no writing in my browser. I can see in my main.js file that the import .vue component is undefin...
I'm developing a webextension based on typescript. For debugging, I need sourcemaps, both in the background and contentscripts. Currently, I'm using parcel to bundle my extension (but I don't think this problem is related to parcel). Wit...
So basically what I'm trying to do is to make the browser refresh whenever there is a change in the files using browserSync, compiles Pug templates, then Parceljs does the bundling. And Gulp is to watch for changes. The overall objective is a st...
I'm trying to use parcel.js and SCSS to use a background-image, but getting: Uncaught SyntaxError: Unexpected token < 7d6454d814b6ce2e1592d3937c337ef3.js:1 Or at times getting: Cannot read property 'js' of null Here is my...
©2020 All rights reserved.