I have a project that builds locally, and I try to create a Docker image.
In my project, I install NPM packages, and my package file is located at:
\src\Core.Blazor\package.json
But, when I try to build my Docker image, it failed with the following…
I am doing a project using Nodejs for the backend, vanilla JS compiled with Parcel Bundler for the client side JS and PUG template engine to generate the views.
Note that I also use the FullCalendar v5 plugin. I don't think this is relevant as I…
I tried to make a small app using peerjs but when I tried to import Peer from "peerjs", my code crash with:
Uncaught ReferenceError: assignment to undeclared variable parcelRequire
At http://localhost:8080/_snowpack/pkg/peerjs.js:20
I didn't find…
Error log of Heroku platform
enter image description here
I tried to deploy app on Heroku sever but was unable to do due to some error
I tried to make Proc file and also edit the start point still it is unable to recognize parcel and also showing it…
I want to create a build of my javascript application using react which currently is just a single file defined as below. It does nothing but creates a div and keeps on changing the color of the hello-world text after it mounts.
import * as React…
In parcel 1, I was able to import with tilde (~) which usually refers to the nearest directory or the root directory of the project. But, I recently upgraded to parcel 2 and it's complaining. How do I enable the ~ path resolvers in a…
I'm the author of a library and I need a script to be run each time before webpack bundles my library into the user's app code.
My library's package.json would be something like this:
{
"name": "some-js-library",
"version": "0.1.0",
"scripts":…
I wanted to upgrade to the latest to use some nice new features. I am using ExtJS so I have to use a bundle with ol global variable. I followed this step to create it but it uses Parcel. I also tried Rollup, Webpack, and Browserify with no success.…
I'm building a chrome extension with Parcel. According to chrome webstore policy (that hosts Chrome extensions) - Chrome extensions are prohibited to use obfuscation.
Unfortunately, for now, we cannot move mission-critical code to a server; and have…
I use ParcelJS to bundle my JavaScript code. I want to modify an existing plugin (say the Elm plugin) to convert some special files on the fly with our own proprietary transpiler to JavaScript.
Therefor I cannot install the plugin from teh npmjs…
I am learning Parcel and trying to bundle a index.html connected with index.js. Everything is okay on the parcel localhost:1234 but in the dist folder when I open the index.html the app is not working.
Note: I know that the problem is caused from…
I am building a service worker for my PWA with Workbox.
service-worker.js
import { registerRoute } from 'workbox-routing';
import { NetworkFirst } from 'workbox-strategies';
import { CacheFirst, StaleWhileRevalidate } from…
I'm trying to convert from Sass to PostCSS with PreCSS plugin on Parcel, but Parcel keeps importing an unchanged CSS file. There is a correctly processed file in the dist folder, but Parcel imports another file in the Dist folder that was never…