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

Path to smoldot on win #2564

Closed
petersopko opened this issue Jul 28, 2022 · 2 comments · Fixed by #2565
Closed

Path to smoldot on win #2564

petersopko opened this issue Jul 28, 2022 · 2 comments · Fixed by #2565

Comments

@petersopko
Copy link

While trying to build our app, with pnpm, I'm running into problem on windows machine (works just fine on MacOS / WSL instance) From what I gathered, the path to this package is unknown on win?

Thanks for taking time to review this, got stuck with this for a while now

 ERROR  in ./node_modules/@substrate/smoldot-light/dist/mjs/index-browser.js                                                                                                                                                       friendly-errors 18:07:05  

Module parse failed: Unexpected token (38:43)                                                                                                                                                                                      friendly-errors 18:07:05  
File was processed with these loaders:
 * ./node_modules/unplugin/dist/webpack/loaders/transform.js
 * ./node_modules/@open-wc/webpack-import-meta-loader/webpack-import-meta-loader.js
You may need an additional loader to handle the result of these loaders.
|         },
|         connect: (config) => {
>             return connect(config, options?.forbidWs || false, options?.forbidNonLocalWs || false, options?.forbidWss || false);
|         }
|     });
 @ ./node_modules/@polkadot/rpc-provider/substrate-connect/index.js
 @ ./node_modules/@polkadot/rpc-provider/bundle.js
ang=ts&
 @ ./components/shared/format/Identity.vue?vue&type=script&lang=ts&
 @ ./components/shared/format/Identity.vue
 @ ./node_modules/unplugin/dist/webpack/loaders/transform.js??ref--44-0!./node_modules/unplugin/dist/webpack/loaders/transform.js??ref--46-0!./node_modules/babel-loader/lib??ref--0-0!./node_modules/@nuxt/webpack-edge/node_modules/vue-loader/lib??vue-loader-options!./node_modules/unplugin-vue2-script-setup/node_modules/unplugin/dist/webpack/loaders/transform.js??ref--19-0!./node_modules/unplugin/dist/webpack/loaders/transform.js??ref--45-0!./pages/westmint/u/_id.vue?vue&type=script&lang=ts&      
 @ ./pages/westmint/u/_id.vue?vue&type=script&lang=ts&
 @ ./pages/westmint/u/_id.vue
 @ ./.nuxt/router.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/@nuxt/bridge/dist/runtime/capi.plugin.mjs ./node_modules/eventsource-polyfill/dist/browserify-eventsoang=ts&
 @ ./components/shared/format/Identity.vue?vue&type=script&lang=ts&
 @ ./components/shared/format/Identity.vue
 @ ./node_modules/unplugin/dist/webpack/loaders/transform.js??ref--44-0!./node_modules/unplugin/dist/webpack/loaders/transform.js??ref--46-0!./node_modules/babel-loader/lib??ref--0-0!./node_modules/@nuxt/webpack-edge/node_modules/vue-loader/lib??vue-loader-options!./node_modules/unplugin-vue2-script-setup/node_modules/unplugin/dist/webpack/loaders/transform.js??ref--19-0!./node_modules/unplugin/dist/webpack/loaders/transform.js??ref--45-0!./pages/westmint/u/_id.vue?vue&type=script&lang=ts&
 @ ./pages/westmint/u/_id.vue?vue&type=script&lang=ts&
 @ ./pages/westmint/u/_id.vue
 @ ./.nuxt/router.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/@nuxt/bridge/dist/runtime/capi.plugin.mjs ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js


@tomaka
Copy link
Contributor

tomaka commented Jul 28, 2022

Your version of WebPack is probably very old.
Anyway, I've opened #2565 to fix the specific error message that you're getting.

@yangwao
Copy link

yangwao commented Jul 28, 2022

Your version of WebPack is probably very old.

Thank you. We've been around since ancient times 😄

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

Successfully merging a pull request may close this issue.

3 participants