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

[Bug]: Missing dist/browser/millan.js #61

Open
ShortDevelopment opened this issue Jul 11, 2024 · 1 comment
Open

[Bug]: Missing dist/browser/millan.js #61

ShortDevelopment opened this issue Jul 11, 2024 · 1 comment

Comments

@ShortDevelopment
Copy link

Importing the millan module in a vite project fails as the specified browser entry point does not exist.

"browser": "dist/browser/millan.js",

@vemonet
Copy link

vemonet commented Sep 4, 2024

@anneeb would it be possible to fix the browser entrypoint for Millan and publish a new fixed version? This seems to be really easy to do for someone who already knows the library.

In the meantime we can overcome this issue by adding this to the vite.config.js file (adapt path to the repository structure):

import { defineConfig } from 'vite';
import path from 'path';

export default defineConfig({
  resolve: {
    alias: {
      'millan': path.resolve(__dirname, './node_modules/millan/dist/millan.js'),
    },
  },
});

Thanks

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

2 participants