parceljs Questions
17
Solved
I am trying to publish a serverless web to vercel.
I want to use react-router and this works good on my computer but when I deploy it It doesn't works
Can somebody help me?
(I want to do it without...
Bathometer asked 13/11, 2020 at 3:20
8
While creating a react app from scratch (without using create-react-app) using parcel bundler, the parcel throws the following error:
Error: Expected content key de1e4a02ec63c4eb to exist
at null...
3
Is it possible to load images dynamically with parceljs bundler, when image names are not known at build time
Is there something similar to webpack's require.context in parcel
Code Snippet (using...
Chaffee asked 21/1, 2018 at 10:11
5
Solved
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 c...
Spew asked 16/10, 2018 at 18:22
21
Solved
I am trying to import images to use inside a React component with TypeScript. The bundler I'm using is Parcel (not Webpack).
I have created a .d.ts file inside the project with the image file exte...
Sidestep asked 11/10, 2018 at 11:42
4
Solved
I'm getting an error that is telling me to add the type="module" attribute to the <script> tag when I run Parcel but I already have. I am trying to follow this tutorial but using my...
Feucht asked 31/3, 2022 at 16:30
3
Solved
I have a basic HTML form page that is linked to a JavaScript file. Both files exist in a Node project and I am using Parcel as a bundler (because I eventually want to convert this to TypeScript).
...
Subcartilaginous asked 22/8, 2019 at 5:42
4
Solved
What is the .cache folder in parcel-bundler? Is it necessary to push the .cache folder to Github ?
4
Solved
This is the first time I am using ParcelJS. I npm it following their instruction everything looks good. So it would be the latest version. As soon as I run it against my project (a .html file with ...
Duclos asked 3/3, 2021 at 3:42
5
Solved
I am making a chatbot. I want to scroll to the bottom of the chat box when a new input is given by the user or the Data is sent through API.
It doesn't scroll and scroll just stays in the same posi...
Bushing asked 15/6, 2022 at 19:22
11
Solved
On trying to run the server with 'parcel index.js':
Server running at http://localhost:1234 🚨 No entries found.
at Bundler.bundle (/usr/local/lib/node_modules/parcel-bundler/src/Bundler.js:27...
Standpipe asked 2/5, 2019 at 8:23
5
I have a folder of dynamically loaded asset files I want to include in my parcel output directory. How can I include unreferenced static asset files like .json, .jpeg, .txt, .etc with my parcel bui...
Fleurette asked 6/11, 2020 at 10:59
8
Solved
when in the development environment, my app works just fine.
When in the production environment it crashes with the error:
Uncaught TypeError: (0 , _react.useEffect) is not a function
It happens ...
Repatriate asked 21/4, 2020 at 16:47
2
Solved
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 folde...
Entrant asked 14/6, 2020 at 9:4
3
Solved
I keep getting "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'.ts(1343)" when trying to use import.meta.url (as shown in Par...
Mohave asked 26/10, 2021 at 0:37
3
Solved
After I've deleted couple files from project that uses Parcel bundler, command parcel ./index.html started to output following error:
Cannot read property 'type' of undefined
at Bundler.createBund...
Perianth asked 5/12, 2019 at 14:5
3
I'm trying to run the example from an npm package that uses parcel.
The example uses a url that makes an api call.
To run the example I do: npm test
Below are the 2 attempts that I made to stop the...
Ridglea asked 29/4, 2022 at 18:7
2
Solved
I'm very, very confused about using babel config with native ECMAScript modules, and "type": "module" set in package.json. As far as I understand Babel docs (here, under "Supported file extensions"...
Sacha asked 16/4, 2020 at 18:35
5
Solved
Whenever I try to run production build command npm run build or npx parcel build index.html, I get this error. I have a simple html and css project, no react, no 3rd party library Why could this be...
Gahl asked 14/4, 2021 at 7:53
3
My setup looks as follows: Windows 10, Release 1909 (Build 18363.1082), using WSL2 with an Ubuntu 20.04 environment. Everything works nicely most of the time, but there are some issues I cannot man...
Ranice asked 18/9, 2020 at 18:15
4
Solved
I have a very simple project set up to use Parcel as the bundler. It's just the basic example from their Getting Started guide.
For a single build everything works fine but I noticed that for eve...
Unscientific asked 8/6, 2019 at 12:3
0
I am using Parcel to bundle my Javascript files. Everything works fine when using the localhost server to test out the build, however in production it doesn't like dynamic imports.
Here is the code...
Locket asked 8/7, 2022 at 17:20
4
Good day, guys!
I looked online for a solution but couldn't find one, so I'm turning to you for assistance. Please bear with me as I describe the situation in full.
I'm a beginner who's having trou...
Addle asked 26/6, 2021 at 21:12
5
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-transfo...
Freya asked 14/10, 2018 at 2:31
3
I'd like to import HTML files as a string with ParcelJS, like this:
import testHTML from './testHTML.html';
document.body.insertAdjacentHTML('afterbegin', testHTML);
But the docs say:
Importing ...
Querida asked 28/4, 2021 at 21:24
1 Next >
© 2022 - 2025 — McMap. All rights reserved.