okikio / bundlejs

An online tool to quickly bundle & minify your projects, while viewing the compressed gzip/brotli bundle size, all running locally on your browser.
https://bundlejs.com
MIT License
751 stars 13 forks source link

Build fails for `remix-hook-form@3.0.4` #63

Closed TheHolyWaffle closed 10 months ago

TheHolyWaffle commented 10 months ago

With default settings enabled. Consider the following input:

export { useRemixForm, getValidatedFormData } from "remix-hook-form";

Build fails with the following error messages:

index.ts:133 ✘ [ERROR] Do not know how to load path: http-url:https://unpkg.com/@remix-run/react@2.2.0/dist/esm/routes.js

    http-url:https://unpkg.com/@remix-run/react@2.2.0/dist/esm/browser.js:16:80:
      16 │ ...ithHMRRevalidationOptOut, createClientRoutes } from './routes.js';
         ╵                                                        ~~~~~~~~~~~~~

rt @ index.ts:133
(anonymous) @ index.ts:266
error @ index.ts:265
(anonymous) @ api.es.js:1
forEach @ api.es.js:1
(anonymous) @ api.es.js:1
emit @ api.es.js:1
(anonymous) @ index.ts:90
index.ts:133 ✘ [ERROR] Do not know how to load path: http-url:https://unpkg.com/@remix-run/react@2.2.0/dist/esm/links.js

    http-url:https://unpkg.com/@remix-run/react@2.2.0/dist/esm/components.js:15:146:
      15 │ ...fs, getModuleLinkHrefs, getKeyedPrefetchLinks } from './links.js';
         ╵                                                         ~~~~~~~~~~~~

rt @ index.ts:133
(anonymous) @ index.ts:266
error @ index.ts:265
(anonymous) @ api.es.js:1
forEach @ api.es.js:1
(anonymous) @ api.es.js:1
emit @ api.es.js:1
(anonymous) @ index.ts:90
index.ts:133 ✘ [ERROR] Do not know how to load path: http-url:https://unpkg.com/@remix-run/react@2.2.0/dist/esm/scroll-restoration.js

    http-url:https://unpkg.com/@remix-run/react@2.2.0/dist/esm/index.js:14:34:
      14 │ export { ScrollRestoration } from './scroll-restoration.js';
         ╵                                   ~~~~~~~~~~~~~~~~~~~~~~~~~

rt @ index.ts:133
(anonymous) @ index.ts:266
error @ index.ts:265
(anonymous) @ api.es.js:1
forEach @ api.es.js:1
(anonymous) @ api.es.js:1
emit @ api.es.js:1
(anonymous) @ index.ts:90
index.ts:133 ✘ [ERROR] Do not know how to load path: http-url:https://unpkg.com/react-router@6.18.0/dist/index.js

    http-url:https://unpkg.com/react-router-dom@6.18.0/dist/index.js:12:307:
      12 │ ...Matches, useNavigation, unstable_useBlocker } from 'react-router';
         ╵                                                       ~~~~~~~~~~~~~~

rt @ index.ts:133
(anonymous) @ index.ts:266
error @ index.ts:265
(anonymous) @ api.es.js:1
forEach @ api.es.js:1
(anonymous) @ api.es.js:1
emit @ api.es.js:1
(anonymous) @ index.ts:90
index.ts:133 4 error(s) (if you are having trouble solving this issue, please create a new issue in the repo, https://github.com/okikio/bundle)
okikio commented 10 months ago

It seems to work for me, I'm struggling to replicate the issue https://bundlejs.com/?q=remix-hook-form&treeshake=%5B%7B+useRemixForm%2CgetValidatedFormData+%7D%5D

TheHolyWaffle commented 10 months ago

Indeed, I can also not reproduce it anymore. Must've been a flaky network issue