Giter Site home page Giter Site logo

Comments (2)

ryansolid avatar ryansolid commented on July 26, 2024 1

I think this is just fixed in the next version with the Vite 5 update.. I wasn't able to reproduce it at least on that branch.

I went back to main (Vite 4) and I see the Plugin_2 alias but it also isn't screaming red lines at me. So I don't know.

from solid-start.

birkskyum avatar birkskyum commented on July 26, 2024

The VitePWA returns a standard rollup Plugin:

interface Plugin<A = any> extends rollup.Plugin<A>

And the solid start expect a PluginOption defined in this convoluted way due to overloading:

export declare type PluginOption = Plugin_2 | false | null | undefined | PluginOption[] | Promise<Plugin_2 | false | null | undefined | PluginOption[]>;

declare interface Plugin_2 extends Plugin_3

where Plugin_3 is the rollup plugin type;

import type { Plugin as Plugin_3 } from 'rollup';

This is an area that has been refactored inside of Vite, so it's likely easier to wrap the head around after, as there appear to be conflict between vite 4 (solid start) and vite 5 (vite pwa plugin) types:

from solid-start.

Related Issues (20)

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.