Questions tagged [snowpack]
107 questions
1
vote
1 answer
Can't get Sass to work with @snowpack/app-template-react-typescript
I'm trying to get Sass to work with @snowpack/app-template-react-typescript
I followed this. I've tried making a new project and adding it but still nothing works :(
snowpack.config.js
/** @type {import("snowpack").SnowpackUserConfig }…

Dawood Sulaiman Syed
- 31
- 3
1
vote
1 answer
Making Snowpack work with Babel, "require is not defined". Am I missing a require transformation?
I'm approaching Snowpack, previously used Webpack + Babel loader. I'm missing something and I know what: some sort of require polyfill or transformation. I don't know the internals of Webpack that make require work in the browser, but I can't get…

gremo
- 47,186
- 75
- 257
- 421
1
vote
0 answers
I can't access my apollo server through a proxy
I've set up apollo server on port 3000 on local host and it works fine. I can use the playground and make queries and they all work. ( some text pixilated for privacy )
However my front end is a Svelte application being served from port 8080 on…

bradgonesurfing
- 30,949
- 17
- 114
- 217
1
vote
1 answer
How to configure runtime compilation in Vue and Snowpack
I'm trying to get a Vue project setup with runtime compilation, but I'm not quite sure how to configure this in Snowpack.
Basically currently when I run the project I get a blank screen and the usual "[Vue warn]: Component provided template option…

Matt H
- 11
- 2
1
vote
1 answer
Snowpack & React: hot reloading / refreshing not working
I use React with Snowpack and the react-refresh plugin.
After a change, the snowpack dev server recompiles correctly and the browser receives an HMR update signal - but the content is not reloaded, the changes are only visible after manual reloading…

stoniemahonie
- 321
- 1
- 5
- 13
1
vote
1 answer
How to specify the public HTML folder while adding Snowpack to an existing Node project?
How to specify the public HTML folder while adding Snowpack to an existing Node.js project?
My existing project structure:
Root
|-src/
|-public/index.html
I've added Snowpack:
npm install --save-dev snowpack
Then when running Snowpack dev…

noseratio
- 59,932
- 34
- 208
- 486
1
vote
1 answer
page/Activity/ActivityTable ✖ Package "page/Activity/ActivityTable" not found. Have you installed it? when i use snowpack dev
Maybe this is about a tsconfig problem, but I don't know what is correct.
I use the template app-template-react-typescript, and I find that when I use src/page it works.
Here is my tsconfig
{
"include": ["src", "types"],
"exclude":…

johnsimthsren
- 31
- 3
0
votes
1 answer
Using snowpack and react cant seem to access express endpoints using axios
I'm working on a web application, express, snowpack, and react all on node.js. Im able to load the view fine however cant seem to make requests to specific endpoints.
Here is the react component making the request to the endpoint:
import React,…

Whitewolf
- 3
- 5
0
votes
0 answers
Nothing is showing up in Canvas Area when PIXI bundle is used with snowpack
I have installed a template from below command for my First PIXI Typescript project, as below:
npx create-snowpack-app . --template @snowpack/app-template-blank-typescript --force
Now after installing and clearing its default code. I have installed…

VarunJi
- 685
- 2
- 14
- 31
0
votes
1 answer
Cannot find name 'GlobalFetch despite having proper TS version
I am fresh building a web app repository using React/TypeScript and the app works but deployment fails:
> build:dev
> SNOWPACK_PUBLIC_APP_ENVIRONMENT=dev snowpack build
[@snowpack/plugin-typescript] src/api/runtime.ts(130,24): error TS2304: Cannot…

Andy Victors
- 335
- 2
- 9
0
votes
1 answer
Snowpack can't find /src/index.jsx no matter what I do?
Man... no idea wth is going on. Keep getting the error:
:~/plasma$ npm run start
> plasma@1.0.0 start
> snowpack dev
[14:33:25] [snowpack] Ready!
[14:33:25] [snowpack] Server started in 55ms.
[14:33:25] [snowpack] Local:…

nkwef3
- 1
- 1
0
votes
0 answers
How to make snowpack ignore .ts files?
How to make Snowpack ignore all .TS and the like files?
What I've tried:
In my snowpack.config.js file, I have tried to ignore .ts files like so:
exclude:['**/*.ts']
After that didn't work, I tried running the snowpack --reload command to see if…

Fighter178
- 303
- 2
- 9
0
votes
0 answers
Postcss snowpack plugin default path
I'm working on a project with snowpack to bundle my typescript and tailwindcss files. By default Postcss looks for the tailwinds main.css file with
@tailwind base;
@tailwind components;
@tailwind utilities;
//Other styles
In the root of the…

Dhaivath Lal
- 42
- 7
0
votes
0 answers
Problem with snowpack using local library
There was a similar question (65989811) but more than a year and no satisty answer was given.I have a 'pixi-flex-layout' library locally and I use npm link to use in my projetct. When I start it never works. I put in snowpack config:
packageOptions:…

Andre Bastos
- 19
- 3
0
votes
1 answer
Typescript + snowpack is outputting nullish coalescing operators in target < ES2020
I'm trying to compile my typescript code/packages to be compatible with Safari Version < 14.
From what I've found, this means no nullish coalescing operators (??) allowed. It seems that the support for them was added is ES2020, so I lowered my…

Dabe
- 13
- 5