Questions tagged [snowpack]

107 questions
0
votes
4 answers

Snowpack & Peerjs: Uncaught ReferenceError: assignment to undeclared variable parcelRequire

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…
LitleCodeur
  • 21
  • 1
  • 8
0
votes
1 answer

Snowpack is not reloading

i started to use snowpack and ran into a big problem. Snowpack is not hot reloading for me. I tried the basic minimal template, a svelte template and a react template - Everytime the same problem. I also created on from scratch based on the getting…
MaddEye
  • 691
  • 4
  • 17
0
votes
1 answer

Svelte for IE11 with Babel transpiler on Snowpack

In an attempt to transpile Svelte components for Internet Explorer 11 web browser with Snowpack running Babel. Using configurations bellow. Only the src/index.js file is transpiled to ES5 syntax. Files related to Svelte framework remain containing…
phaleth
  • 569
  • 5
  • 7
0
votes
1 answer

Changes to transitive dependencies not triggering live reload

I've added Snowpack 3 to my application and it works for JS/TS files as well as directly imported stylus files. The file structure is similar to the following: view.js: import 'view-styles.styl' export default function view() { return ( …
Robert M.
  • 1,339
  • 1
  • 12
  • 34
0
votes
1 answer

Svelte-i18n with Snowpack shows blank page without errors

I am using Svelte 3 + Snowpack 3 + Routify + Svelte-i18n. I am not using Sapper. I installed everything with this template. And this is my repo where you can see all my files. I am following the official tutorial of svelte-i18n. Problem: I can't…
Ulvi
  • 965
  • 12
  • 31
0
votes
1 answer

Why Snowpack is not taking my type declaration files?

I have the following configuration in snowpack: /** @type {import("snowpack").SnowpackUserConfig } */ module.exports = { mount: { public:{ url: '/', static: true }, src: { url: '/dist' }, runtime: { url: '/runtime' }, }, …
Montana
  • 67
  • 1
  • 5
0
votes
1 answer

Snowpack and postcss-import?

I'm trying to use postcss-simple-vars with Snowpack. REPL: https://github.com/frederikhors/snowpack-svelte-tailwindcss I'm using https://github.com/snowpackjs/snowpack/tree/main/create-snowpack-app/app-template-svelte-typescript I'm trying to use it…
0
votes
1 answer

missing icons with Snowpack + Svelte + svelte-materialify

I am trying to get snowpack to work with svelte-materialify. I created an app with create-snowpack-app svelte-snowpack --template @snowpack/app-template-svelte, followed by yarn install svelte-materialify. All the CSS seem to work, a simple…
nerdoc
  • 1,044
  • 10
  • 28
0
votes
1 answer

After upgrading to Snowpack 3 cannot find files

I'm using Snowpack + Svelte. After upgrading to Snowpack 3 is not working anymore and I can't configure mount in snowpack.config.js properly. Don't understand exactly why it cannot find App.js also it's trying to find .jsx, .ts... [404]…
Johnny Johnny
  • 319
  • 2
  • 11
0
votes
0 answers

How to use snowpack with react native

I recently got to know about snowpack and it's advantages but the thing is all the available tutorials are on how to make a react app with snowpack but I wanted to use it with react-native. I saw that expo uses webpack does that mean we can use…
Gayatri Dipali
  • 1,171
  • 4
  • 16
0
votes
1 answer

path errors with snowpack build and cordova build

Does anyone know of an example snowpack config that works with cordova? I'm having path errors in my cordova build, which is probably related to relative/absolute path settings. Couldn't find any examples of snowpack/cordova .
Jingle
  • 573
  • 3
  • 15
0
votes
1 answer

Snowpack dev isn't detecting file changes

Snowpack won't detect any changes no matter what I do. I use Windows 10 with WSL2 and VSCode version 1.51 I don't believe this is a VSCode issue as even in zsh it doesn't detect changes I've tried sudo sysctl fs.inotify.max_user_watches=524288 &&…
0
votes
2 answers

Vue single file component import lifecycle hooks

I need help with the setup of my Vue application (I am just learning vue). I read in the tutorials that to get access to a lifecycle hook I would need to do something like this: