Giter Site home page Giter Site logo

Comments (10)

jkcs avatar jkcs commented on August 30, 2024

need change

import { fileURLToPath } from "url";

const dir = path.parse(fileURLToPath(import.meta.url)).dir;

from blocknote.

zaaakher avatar zaaakher commented on August 30, 2024

@jkcs That silenced the error but it doesn't seem to be actually generating the examples.gen.tsx due to getExampleProjects not finding any example files due to it not knowing the exact path

from blocknote.

jkcs avatar jkcs commented on August 30, 2024

try this:https://github.com/TypeCellOS/BlockNote/pull/818/files#diff-93421da21c480705d1154839957c6737a254abe9cc85a0e91f792ce42627e17e

from blocknote.

zaaakher avatar zaaakher commented on August 30, 2024

try this:https://github.com/TypeCellOS/BlockNote/pull/818/files#diff-93421da21c480705d1154839957c6737a254abe9cc85a0e91f792ce42627e17e

That only silenced the errors. But unfortunately it can't read any example directories which makes it output an empty example object in examples.gen.tsx

from blocknote.

matthewlipski avatar matthewlipski commented on August 30, 2024

Ah yeah, I was also running into this when I was working on Windows way back. Basically, node:path handles Windows and MacOS paths pretty differently and it's just kind of a pain. Unfortunately the solution that was most convenient for me was removing all path calls and replacing them with hardcoded strings:(

from blocknote.

YousefED avatar YousefED commented on August 30, 2024

/bounty 10

from blocknote.

algora-pbc avatar algora-pbc commented on August 30, 2024

💎 $10 bounty • BlockNote

Steps to solve:

  1. Start working: Comment /attempt #955 with your implementation plan
  2. Submit work: Create a pull request including /claim #955 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to TypeCellOS/BlockNote!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @rogueloop Jul 29, 2024, 10:26:48 PM WIP
🟢 @jkcs #970

from blocknote.

rogueloop avatar rogueloop commented on August 30, 2024

/attempt #955

Algora profile Completed bounties Tech Active attempts Options
@rogueloop 1 bounty from 1 project
Java, Go,
Python & more
Cancel attempt

from blocknote.

algora-pbc avatar algora-pbc commented on August 30, 2024

💡 @jkcs submitted a pull request that claims the bounty. You can visit your bounty board to reward.

from blocknote.

algora-pbc avatar algora-pbc commented on August 30, 2024

@jkcs: You've been awarded a $10 bounty by BlockNote! We'll notify you once it is processed.

from blocknote.

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.