Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could you publish the npm for the latest git code? #153

Open
Jeromy-L opened this issue May 24, 2021 · 3 comments
Open

could you publish the npm for the latest git code? #153

Jeromy-L opened this issue May 24, 2021 · 3 comments

Comments

@Jeromy-L
Copy link

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?

@ChobitsSP
Copy link

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

@nicholasxjy
Copy link

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')
    }
  },

@allan-vera
Copy link

allan-vera commented May 3, 2024

import path from "path";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants