Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

[BUG] yarn build fails #471

Closed
jmsunseri opened this issue Jun 18, 2021 · 2 comments
Closed

[BUG] yarn build fails #471

jmsunseri opened this issue Jun 18, 2021 · 2 comments
Labels
Bug: Fixed Issues that report bugs and have been fixed. Meta: Dependencies Issues and PRs related to dependencies. SEM: Patch PRs that contain bugfixes and should be released in the next patch version.

Comments

@jmsunseri
Copy link

Please describe the problem you are having in as much detail as possible:

running yarn build fails with the following error

Using @sveltejs/adapter-vercel
 > node_modules/nintendo-switch-eshop/dist/index.mjs:15:13: error: The export name "__esModule" is reserved and cannot be used (it's needed as an export marker when converting ES module syntax to CommonJS)
    15 │ export const __esModule = mod.__esModule;
       ╵              ~~~~~~~~~~

> Build failed with 1 error:
node_modules/nintendo-switch-eshop/dist/index.mjs:15:13: error: The export name "__esModule" is reserved and cannot be used (it's needed as an export marker when converting ES module syntax to CommonJS)
Error: Build failed with 1 error:
node_modules/nintendo-switch-eshop/dist/index.mjs:15:13: error: The export name "__esModule" is reserved and cannot be used (it's needed as an export marker when converting ES module syntax to CommonJS)
    at failureErrorWithLog (/Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:1449:15)
    at /Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:1131:28
    at runOnEndCallbacks (/Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:1049:65)
    at buildResponseToResult (/Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:1129:7)
    at /Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:1236:14
    at /Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:609:9
    at handleIncomingPacket (/Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:706:9)
    at Socket.readFromStdout (/Users/jmsunseri/dev/code/n-buddy/node_modules/esbuild/lib/main.js:576:7)
    at Socket.emit (events.js:315:20)
    at addChunk (_stream_readable.js:309:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~/dev/code/n-buddy(master) » 
@jmsunseri jmsunseri added the Bug: Unverified Issues that report unverified bugs. Pending for inspection. label Jun 18, 2021
@favna favna closed this as completed in 523e2a5 Jun 18, 2021
@favna
Copy link
Collaborator

favna commented Jun 18, 2021

This was actually an issue in esbuild which was caused by gen-esm-wrapper rather than this library specifically. That said, as it happens it was also recently fixed in gen-esm-wrapper (addaleax/gen-esm-wrapper#7) so I'm momentarily publishing v6.0.0 which will have the __esModule key removed.

@favna
Copy link
Collaborator

favna commented Jun 18, 2021

Version 6.0.0 has been published fixing this issue: https://github.com/lmmfranco/nintendo-switch-eshop/releases/tag/v6.0.0

@favna favna added Bug: Fixed Issues that report bugs and have been fixed. Meta: Dependencies Issues and PRs related to dependencies. SEM: Patch PRs that contain bugfixes and should be released in the next patch version. and removed Bug: Unverified Issues that report unverified bugs. Pending for inspection. labels Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug: Fixed Issues that report bugs and have been fixed. Meta: Dependencies Issues and PRs related to dependencies. SEM: Patch PRs that contain bugfixes and should be released in the next patch version.
Projects
None yet
Development

No branches or pull requests

2 participants