straight-skeleton icon indicating copy to clipboard operation
straight-skeleton copied to clipboard

Run it in nodeJs

Open TANK2003 opened this issue 8 months ago • 3 comments

Hello,

First of all thanks for this package! When i try to use it with "CommonJS" in package.json and tsconfig.json , i have succeed to load it with

const { SkeletonBuilder } = require('straight-skeleton'); 
or
import { SkeletonBuilder } from "straight-skeleton";

But when i try the init, i have this error below

Image

Do you know why ?

TANK2003 avatar Mar 30 '25 18:03 TANK2003

did you find a way to solve the issue?

pcace avatar May 05 '25 15:05 pcace

@pcace yes i have rebuild the package and targeting node platform. I can provide a fork if you want.

TANK2003 avatar May 06 '25 09:05 TANK2003

Hi there, i have made my own fork and moved to rollup since webpack for me is horrible to configure ;)
https://github.com/pcace/weighted-straight-skeleton it is fully running in web and node now

cheers

pcace avatar May 06 '25 10:05 pcace