Skip to content

require not defined for @jscad/csg and @jacad/stl-serializer package required for toJscadSTL function #571

Discussion options

You must be logged in to vote

I've created a sample repo which shows a minimal working example: https://github.com/danmarshall/makerjs-jscad-vite

Notable points:

  • in package.json loaded specific (old) versions of the Jscad libraries. Now that Jscad is stable, I should create a new API.
  • Using import statements in sample code:
import { CAG } from '@jscad/csg';
import * as stlSerializer from '@jscad/stl-serializer';

const stl = makerjs.exporter.toJscadSTL(CAG, stlSerializer, star, { extrude: 50 });

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@VasanthAtGitHub
Comment options

Comment options

You must be logged in to vote
5 replies
@VasanthAtGitHub
Comment options

@danmarshall
Comment options

@jsonxzst
Comment options

@danmarshall
Comment options

Answer selected by danmarshall
@danmarshall
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants