Coder Social home page Coder Social logo

gatsby-plugin-vanilla-extract's Introduction

Welcome to the Gatsby User Collective!

The Gatsby UC was born out of a desire to create higher quality plugins in the Gatsby ecosystem by reducing maintainer work loads.

Goals

Most Gatsby plugin projects aren't massive. Sometimes they need regular maintenance, a lot of the time they do not. Either way, original authors become unable or willing to maintain a plugin at any given moment or maybe indefinately. This is not a comdemnation, it's a fact of life that sometimes maintainers need to move on. No matter the cause, this results in plugins going un-maintained by their authors. Others are willing and able to help; but the bottle neck that cannot be bypassed. At times this means fixing bugs in less ideal ways, creating duplicate implementations of plugins, etc. The Gatsby User collective's goal is to demorcratize the maintenance of these plugins to allow more folks to assist in their maintenance.

Info

The details of this community is still being flushed out. As problems arrize we will solve them together and in an open fasion. For now check out

  • Code of conduct [TBA]
  • Submitting a plugin to the UC [TBA]
  • ...

gatsby-plugin-vanilla-extract's People

Contributors

cycleseven avatar kyleamathews avatar leomrav avatar mattcompiles avatar moonmeister avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gatsby-plugin-vanilla-extract's Issues

Bug when importing .css.ts file

"gatsby": "^2.32.13",
"@vanilla-extract/css": "^1.0.0",
"@vanilla-extract/babel-plugin": "^1.0.0",
"@vanilla-extract/css-utils": "^0.1.1",
"@vanilla-extract/webpack-plugin": "^1.0.1",
"gatsby-plugin-vanilla-extract": "^1.0.5",

I'm creating a theme in my gatsby app

import { defaultButtons, themeVars } from '@newrade/core-react-ui';
import { createTheme } from '@vanilla-extract/css';

export const themeClassName = createTheme(themeVars, {
  buttons: {
    ...defaultButtons,
    medium: {
      ...defaultButtons.medium,
      padding: {
        default: '40px',
      },
    },
  },
});

and then importing it

import { themeClassName } from '../design-system/theme.css';

Somehow I'm getting this error:

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

(Emitted value instead of an instance of Error) ReferenceError: window is not defined

File: src/design-system/theme.css.ts

failed Re-building development bundle - 2.975s

./src/design-system/theme.css.ts
Module build failed (from /Users/phil/Code/newrade/node_modules/@vanilla-extract/webpack-plugin/loader/dist/vanilla-extract-webpack-plugin-loader.cjs.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error) ReferenceError: window is not defined
    at /Users/phil/Code/newrade/node_modules/webpack/lib/NormalModule.js:313:13
    at /Users/phil/Code/newrade/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /Users/phil/Code/newrade/node_modules/loader-runner/lib/LoaderRunner.js:182:20
    at context.callback (/Users/phil/Code/newrade/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/phil/Code/newrade/node_modules/@vanilla-extract/webpack-plugin/loader/dist/vanilla-extract-webpack-plugin-loader.cjs.dev.js:58:5
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

I get this while running gatsby develop

What is weird is I have a default theme in another package and I can import that one fine, but locally created theme fails

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.