venn.js icon indicating copy to clipboard operation
venn.js copied to clipboard

could you publish the npm for the latest git code?

Open Jeromy-L opened this issue 4 years ago • 3 comments

I found that the npm code in src/layout.js is error: import {nelderMead, bisect, conjugateGradient, zeros, zerosM, norm2, scale} from '../node_modules/fmin/index.js';

in the github, the code is import {nelderMead, bisect, conjugateGradient, zeros, zerosM, norm2, scale} from 'fmin';

could you publish?

Jeromy-L avatar May 24 '21 11:05 Jeromy-L

node_modules/venn.js/src/layout.js:2:20: error: Could not resolve "../node_modules/fmin/index.js" 2 │ scale} from '../node_modules/fmin/index.js'; ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/venn.js/src/diagram.js:6:25: error: Could not resolve "../node_modules/fmin/index.js" 6 │ import {nelderMead} from "../node_modules/fmin/index.js"; ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vite development error

ChobitsSP avatar Jun 06 '21 02:06 ChobitsSP

node_modules/venn.js/src/layout.js:2:20: error: Could not resolve "../node_modules/fmin/index.js" 2 │ scale} from '../node_modules/fmin/index.js'; ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/venn.js/src/diagram.js:6:25: error: Could not resolve "../node_modules/fmin/index.js" 6 │ import {nelderMead} from "../node_modules/fmin/index.js"; ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vite development error

try this

// vite.config.ts
  resolve: {
    alias: {
      'venn.js': path.resolve(__dirname, './node_modules/venn.js/build/venn.js')
    }
  },

nicholasxjy avatar Jul 21 '21 06:07 nicholasxjy

import path from "path";

allan-vera avatar May 03 '24 16:05 allan-vera