Coder Social home page Coder Social logo

Comments (7)

vexkiddy avatar vexkiddy commented on August 31, 2024

So found this thread about something similar happening with another library.. it looks like datebook is using UMD under main in the package.json, which apparently node doesn't like ? More info can be found at the end of this thread, maybe its useful ? sveltejs/kit#5325

from datebook.

jshor avatar jshor commented on August 31, 2024

There's an ESM version of Datebook in the dist. But if the module entry isn't being picked up by your build, you could try referencing the ESM build directly in your import:

import { GoogleCalendar, OutlookCalendar, YahooCalendar } from "datebook/dist/datebook.esm.min.js";

from datebook.

vexkiddy avatar vexkiddy commented on August 31, 2024

hiya @jshor yeah i've tried that and get the same issues. However when I copy datebook.esm.min.js locally and run my build it then works. It's very odd :(

from datebook.

jshor avatar jshor commented on August 31, 2024

@vexkiddy could you provide a repo to reproduce the issue?

from datebook.

vexkiddy avatar vexkiddy commented on August 31, 2024

sure! made you a version which you can clone and try out here: https://github.com/vexkiddy/datebook-sveltekit-issues

from datebook.

jshor avatar jshor commented on August 31, 2024

Thanks @vexkiddy, I believe it should be fixed now. Give v7.1.2 a try and see if it resolves your issue

from datebook.

vexkiddy avatar vexkiddy commented on August 31, 2024

@jshor amazing! that works like a dream! thanks so much for fixing this so quickly! :D

from datebook.

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.