Questions tagged [snowpack]

107 questions
4
votes
1 answer

Runtime error when trying to use css modules with react and snowpack

I have an issue when trying yo setup css modules with react and snowpack. Here is how to reproduce the issue: "snowpack": "^2.17.0", "@snowpack/plugin-sass": "^1.1.1", Setup a new app using npx npx create-snowpack-app snowpack --template…
4
votes
0 answers

Cannot resolve nested path with snowpack

In my react project a hard refresh of a nested path does not work. Then snowpack config tries to load from the folder "dist" and cannot serve the page. config like in snowpack docu: { mount: { public: '/', src: '/_dist_', }, ... …
vuvu
  • 4,886
  • 12
  • 50
  • 73
4
votes
1 answer

snowpack Package "abstracts/variables" not found. Have you installed it? getting this error while running npm start

I got this error while running npm start used snowpack.dev https://www.snowpack.dev/ snow [snowpack] ! updating dependencies... [snowpack] ! installing dependencies… [snowpack] Package "abstracts/variables" not found. Have you installed…
4
votes
1 answer

snowpack woff2 font won't load

snowpack super fast than webpack. but I fetch some problem like when I import font-awesome my react project it fail. cause snowpack won't load font (.woff2) file. snowpack official website not about this topic. now how to fix it?
RaseL Mahmud
  • 249
  • 2
  • 5
4
votes
2 answers

Getting svelte-material-ui working with snowpack and sass

I'm trying to get svelte material UI working with snowpack. I have installed Snowpack and Snowpacks svelte template like so: npm install --save-dev snowpack@next npx create-snowpack-app xpapp --template @snowpack/app-template-svelte This works, the…
Erik Oosterwaal
  • 4,272
  • 3
  • 44
  • 64
3
votes
1 answer

Snowpack config only build modules from package.json

I am new to Snowpack (and frontend build tools in general), but I am looking for a solution to use my Node modules inside my client-side Javascript (using ESM syntax), and the idea of Snowpack bundling my modules in separate JS-files attracts me.…
thim24
  • 624
  • 1
  • 5
  • 14
3
votes
2 answers

Can I enable directory listing in the Snowpack dev server?

I'm looking into using Snowpack as an alternative to Webpack. By default, if I run the webpack dev server (webpack serve) and no default document exists, browsing to http://localhost:8080 gives me a directory listing. I want to enable the same…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
3
votes
1 answer

How to setup pathMapping in VSCode to debug a Snowpack application

I'm evaluating Snowpack for building my JavaScript project. However, VSCode and the Debugger for Chrome extension cannot match the scripts on the dev server to the local source files. Because of this, breakpoints don't work. I'm not using any source…
tuner
  • 326
  • 3
  • 9
3
votes
1 answer

svelte svelte-adapter-firebase function setup

I have been messing around with new Svelte SSR adapters since the future of Svelte will not use Sapper. I am trying to create a firebase function for SSR, but I can't seem to find any clue on how to do this. This guide tells you how to implement…
Jonathan
  • 3,893
  • 5
  • 46
  • 77
3
votes
0 answers

Import under path with Pika CDN?

For example, RxJS main export are like this: import { range } from "rxjs"; // Turns into import { range } from "https://cdn.pika.dev/rxjs@^6.5.5"; But RxJS operators are under rxjs/operators. How can I import these files? Thanks!!
Daniel Ramos
  • 2,115
  • 3
  • 18
  • 28
2
votes
0 answers

package.json entry points with rollup and @rollup/plugin-node-resolve

I'm looking for some help with package.json entry points (i.e. with @rollup/plugin-node-resolve, with snowpack). For a package I'm importing (indirectly via RxDB), I'm having some issues and according to its maintainer, it's just not choosing the…
user1224598
  • 101
  • 3
2
votes
1 answer

Snowpack 3.8 cannot find the source folder, running dev server with different root directory

I have a project structure like this: When starting the dev server from root directory everything works perfectly. I would like my index.html file to be in the src directory, but then snowpack does not find the index.html file. When starting the…
2
votes
1 answer

Using Vaadin Components with snowpack

I'm trying to use Vaadin Components with snowpack. Specifically just to recreate the basic app layout example. But I get the following error message. What does this mean? How do I fix it? Unhandled Runtime Error SyntaxError: indirect export not…
kag0
  • 5,624
  • 7
  • 34
  • 67
2
votes
1 answer

How to use a template HTML with Snowpack 3?

I am new to Snowpack and I have a Template.html' file in my source folder that I would like Snowpack to read and produce an index.html` in the destination output folder. It would also be nice if I can use some variables in the template that Snowpack…
geeko
  • 2,649
  • 4
  • 32
  • 59
2
votes
0 answers

How do I correctly config Snowpack to React project?

I am new to Snowpack and am struggling to get it up and running correctly. I have a CRA project with the structure: ROOT - build - public - src ---- components, etc - snowpack.config.js - package.json In my snowpack.config.js I have…
Thomas Allen
  • 725
  • 5
  • 17
  • 30