Coder Social home page Coder Social logo

Invalid source map about supabase-js HOT 6 CLOSED

supabase avatar supabase commented on September 24, 2024
Invalid source map

from supabase-js.

Comments (6)

kiwicopple avatar kiwicopple commented on September 24, 2024 1

🎉 This issue has been resolved in version 1.11.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

from supabase-js.

kiwicopple avatar kiwicopple commented on September 24, 2024 1

🎉 This issue has been resolved in version 1.11.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

from supabase-js.

awalias avatar awalias commented on September 24, 2024

hey @benmccann thanks for the report! we'll take a look

from supabase-js.

kiwicopple avatar kiwicopple commented on September 24, 2024

Strange, it's just coming from the tsconfig

"sourceMap": true,

sourcemap option: https://www.typescriptlang.org/tsconfig#sourceMap

Seems like the path to the file is wrong?
image

from supabase-js.

kiwicopple avatar kiwicopple commented on September 24, 2024

It looks like I can fix this by setting mapRoot option in tsconfig to "mapRoot": "./",

This produced the file:

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAC5E,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC9E,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AAErC;;GAEG;AACH,QAAA,MAAM,YAAY,gBACH,MAAM,eACN,MAAM,gEAIpB,CAAA;AAED,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACR,WAAW,GACZ,CAAA"}

Just need someone to test this output works with SvelteKit (i'll ask a member of our community)

edit: didn't work

Error: ENOENT: no such file or directory, open '/home/ixxie/repos/coflow-app/node_modules/@supabase/supabase-js/dist/module/index.ts'

It seems we really do need to ship all of the src folder to npm too so that the maps in the dist folder can resolve properly

image

from supabase-js.

kiwicopple avatar kiwicopple commented on September 24, 2024

OK this is now solved (i hear there's a problem with global declaration inside the websocket library, but we should start a new issue for that)

from supabase-js.

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.