question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot detect named export in reexports

See original GitHub issue

Describe the bug

Vite in development mode cannot detect named exports with reexport

Uncaught SyntaxError: The requested module ‘/node_modules/.vite/relay-runtime.js?v=3484dce5’ does not provide an export named ‘graphql’

Reproduction

https://github.com/TrySound/vite-reexport-bug

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

  System:
    OS: macOS Mojave 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 353.35 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 14.16.0 - /var/folders/93/vjl05hsx4_vdnhvdtky_qx8m0000gn/T/fnm-shell-6833125/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.11 - /var/folders/93/vjl05hsx4_vdnhvdtky_qx8m0000gn/T/fnm-shell-6833125/bin/npm
  Browsers:
    Chrome: 89.0.4389.90
    Firefox: 86.0.1
    Safari: 13.0.3
  npmPackages:
    vite: ^2.1.3 => 2.1.4 

Used package manager: yarn


Before submitting the issue, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
  • Provide a description in this issue that describes the bug.
  • Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TrySoundcommented, Jun 24, 2021

I added eagerEsModules to relay 😄

1reaction
TrySoundcommented, Jun 24, 2021
import replace from '@rollup/plugin-replace';
...
plugins: [
  replace({
    global: "{}"
  })
]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't import the named export XXXX from non EcmaScript ...
the solution is to make sure that you have a webpack.config.js file in the root of your project directory that looks something like...
Read more >
Reexports and Offshore Transactions - BIS.doc.gov
Guidance on Reexports/Transfers (in-country) of U.S.-Origin Items or Non-U.S.-made Items Subject to the Export Administration Regulations ...
Read more >
export - JavaScript - MDN Web Docs
This re-exports all named exports from mod as the named exports of the current module, but the default export of mod is not...
Read more >
U.S. Export Controls - International Trade Administration
BIS's Export Administration (EA) reviews license applications for exports, reexports, transfers and deemed exports (technology transfers to foreign nationals in ...
Read more >
21 CFR Part 1312 -- Importation and Exportation of Controlled ...
(6) The name of the importing carrier or vessel (if known), or if unknown it ... for a permit to export or reexport...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found