could you publish the npm for the latest git code?
Jeromy-L opened this issue · 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?
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
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')
}
},