Questions tagged [snowpack]
107 questions
0
votes
1 answer
A way of testing javascript/typescript in browser after bundling
I'm writing a web app with my friend. He writes the Fronted, I write the Backend. Problem is that there is no way of me testing my code if my friend haven't wrote the integration yet, because we bundle the code in web pack and run it on a dev…

pggu11
- 3
- 1
0
votes
1 answer
How to use Azure DevOps for building React Applications?
Can we use Build Tools like "WebPack" or "SnowPack" within Azure DevOps for building React Applications?
0
votes
1 answer
Snowpack: Is it possible to mount directories that are within a parent directory?
Pre-empt: I am VERY new to Snowpack.
Issue:
I am attempting to mount /public and /src directories which are within a parent directory [See below]. I know this (essentially) defies convention, but I have an unusual use case.
Folder…
0
votes
1 answer
Zsh: command not found: snowpack
I am trying to create snowpack config file for my preact application. I have already installed all necessary libraries but it still show an error when I try to run this command snowpack init. error zsh: command not found: snowpack
This is my…

Neo
- 119
- 2
- 11
0
votes
1 answer
How to load HDR files using SnowpackJS
I have been trying to load HDR files in my Snowpack application(to use with THREE.js). I am able to load .jpg files, but I cannot seem to load .hdr.
I've tried using snowpack-plugin-raw-file-loader but that didn't work. I was able to import .md…

Abhiraam Eranti
- 350
- 5
- 19
0
votes
1 answer
Getting Snowpack to work with the Skypin Rollup plugin
I'm trying to get rollup-plugin-skypin to work with snowpack through snowpack-plugin-rollup-bundle. I have a small project set up like so:
snowpack.config.mjs
// Snowpack Configuration File
// See all supported options:…

TropicalRaisel
- 71
- 1
- 8
0
votes
1 answer
Snowpack internal module import path issue
I'm running npx snowpack build --watch in a project (not the dev command due to a Flask backend), and am having some problems with internal imports.
By that I mean modules importing dependencies - so Bootstrap importing Popper for example.
The…

jt196
- 17
- 5
0
votes
1 answer
Why might an "Unhandled Runtime Error" from a React app be encountered only on android emulator?
I am trying to open a web-based React-app on chrome on an Android emulator but am getting the following error:
Unhandled Runtime Error
Uncaught SyntaxError: Unexpected Token .
The same app can be opened through chrome on localhost or through mobile…

Onesoftwareengineer
- 33
- 1
- 5
0
votes
0 answers
Cannot delete files/directories
I just started a blog template project with Astro.
https://astro.build/
My project folder is C:/web/astro-test-1/ and i want to deploy my build to a local server at C:/wamp64/www/astro/ with npm run build.
I´d setup the astro.config.mjs as…

RustyJames
- 123
- 7
0
votes
0 answers
Snowpack custom build file name, like rollup
rollup has a feature that allows for a custom output file name.
in the rollup.config.js file you can do this:
import pkg from './package.json';
export default {
output: [{
file: `build/${pkg.name}.browser.${pkg.version}.min.js`,
…

17xande
- 2,430
- 1
- 24
- 33
0
votes
1 answer
How can I use Cypress to test a Snowpack app
How can I use Cypress in a Snowpack + Svelte app? Snowpack only has docs for jest and @web/test-runner.

Nailuj29
- 750
- 1
- 10
- 28
0
votes
1 answer
Snowpack Typescript Imports
I'm running Snowpack and I have a Typescript package (hosted on Github packages) that I want to pull in via
import SomeClass from '@myRepo/lib'
however I'm getting the error
"/_snowpack/pkg/@myRepo.SomeClass.ts" is not a constructor
When I…

SuperJumbo
- 519
- 3
- 13
0
votes
2 answers
React router dom is working for some component but not working for another component
My problem is that react-router-dom is working for Homepage and productList but not working for Signin component. I think there is no problem with snowpack. But I put snowpack config file, in case there is some problem. The weird thing is I added a…

Arka Barua
- 1
- 2
0
votes
1 answer
Why the index.html of my React build is blank?
I am making a React app using Snowpack. Everything works correctly, the build is also successful. But when I am tying to open the index.html of the build, the page is blank.
I have found a temporary fix, by modifying the index.html from the build…

Darky
- 15
- 1
- 7
0
votes
0 answers
Uncaught SyntaxError: The requested module 'xxxx' does not provide an export named 'yyyy'
I am using Snowpack and trying to import Chart.js for Vue so I can display some data.
Getting this error:
Uncaught SyntaxError: The requested module '../_snowpack/pkg/chartjs.v3.2.0.js' does not provide an export named…

mlvrkhn
- 87
- 1
- 12