Coder Social home page Coder Social logo

evanjo03 / lit-storybook-conflicts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 104 KB

Simple POC to identify compatibility issues with @open-wc/web-dev-storybook and lit/lit-element.

License: MIT License

JavaScript 26.64% HTML 12.94% TypeScript 60.42%

lit-storybook-conflicts's Introduction

Purpose

Showcases an issue found when using @web/dev-server-storybook along with lit and legacy versions of lit down the dependency tree. Seems to be related to: open-wc/open-wc#2322.

This application was created with the @open-wc generator and comes with storybook and lit@2. I created a separate package also created with the @open-wc generator that uses legacy lit dependencies (lit-html@^1.0.0 and lit-element@^2.2.1). In all other ways, it is untouched. The code for the legacy package can be found here.

There seems to be some dependency conflict around lit-html that occurs when using @web/dev-server-storybook, as running npm run storybook returns the error below. Note that npm run start works without any issue.

storybook error

Reproducing the Error:

git clone https://github.com/evanjo03/lit-storybook-conflicts.git

cd lit-storybook-conflicts

npm i

npm run storybook

Open-wc Starter App

Built with open-wc recommendations

lit-storybook-conflicts's People

Contributors

evanjo03 avatar

Watchers

 avatar

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.