Giter Site home page Giter Site logo

Comments (4)

43081j avatar 43081j commented on September 9, 2024 1

it'll be a mismatch of typescript versions. importing individual type-only symbols is fairly new, so i suspect your project uses a slightly older typescript (or vite does?)

somewhere down the line there's definitely an older typescript, upgrading it would solve this

from parse5.

ilrein avatar ilrein commented on September 9, 2024

I can see that vite uses typescript 5.0.2 while parse5 uses 5.0.3

Think that could the problem?

from parse5.

43081j avatar 43081j commented on September 9, 2024

apparently its a feature since 4.5 so that seems odd

if you npm ls typescript in that repo, do you see any older ones?

edit: ah only when you deploy to vercel maybe? so possibly vercel runs <4.5?

from parse5.

ilrein avatar ilrein commented on September 9, 2024

I would imagine that vercel is agnostic, they deploy everything front-end.

I'm running vercel dev which calls vite --port $PORT

I can see this PR from 2022 that was merged vitejs/vite#9678

The team added parse5 version 7. But then I look at the package json in the newest vite version and there's no reference to parse5 🤔

EDIT: nvm, it's in a folder called packages/vite

They used [email protected]

I guess it must be the vercel cli

from parse5.

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.