Skip to content
New issue

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

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

Already on GitHub? # to your account

What is __vite-browser-external-DYxpcVy9.js from dist folder #279

Open
xneek-shtorm opened this issue Jul 4, 2024 · 2 comments
Open

What is __vite-browser-external-DYxpcVy9.js from dist folder #279

xneek-shtorm opened this issue Jul 4, 2024 · 2 comments

Comments

@xneek-shtorm
Copy link

xneek-shtorm commented Jul 4, 2024

What is __vite-browser-external-DYxpcVy9.js from dist folder?
The build of my webpack project fails because...
the file __vite-browser-external-DYxpcVy9.js is not under the feet of my project. And it lies under the feet of the library.

Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
ERROR in@product.front/ui-kit/dist/product-ui-kit.js 153:86573-86620
Module not found: Error: Can't resolve './__vite-browser-external-DYxpcVy9.js' in /@product.front/ui-kit/dist'
resolve './__vite-browser-external-DYxpcVy9.js' in '/node_modules/@product.front/ui-kit/dist'
  using description file: /node_modules/@product.front/ui-kit/package.json (relative path: ./dist)
    Field 'browser' doesn't contain a valid alias configuration
    using description file: /node_modules/@product.front/ui-kit/package.json (relative path: ./dist/__vite-browser-external-DYxpcVy9.js)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
       /@product.front/ui-kit/dist/__vite-browser-external-DYxpcVy9.js doesn't exist
      .tsx
        Field 'browser' doesn't contain a valid alias configuration
        /@product.front/ui-kit/dist/__vite-browser-external-DYxpcVy9.js.tsx doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /@product.front/ui-kit/dist/__vite-browser-external-DYxpcVy9.js.ts doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
       /@product.front/ui-kit/dist/__vite-browser-external-DYxpcVy9.js.js doesn't exist
      .scss
        Field 'browser' doesn't contain a valid alias configuration
       /@product.front/ui-kit/dist/__vite-browser-external-DYxpcVy9.js.scss doesn't exist
      as directory
        /@product.front/ui-kit/dist/__vite-browser-external-DYxpcVy9.js doesn't exist
 @ ./src/components/App/Application.tsx 3:0-99 23:22-32 23:34-44 23:46-57 23:[59](https://wh-
@cyntler
Copy link
Owner

cyntler commented Jul 5, 2024

@xneek-shtorm What about v1.16.6?

@xneek-shtorm
Copy link
Author

@xneek-shtorm What about v1.16.6?
There are even more errors 🫤
image

Using a pure example, create-react-app is builds without errors, but errors will occur in runtime, because There are still these imports from under your feet, but there are no files under your feet...

image

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

No branches or pull requests

2 participants