esm output provides wrong import statement
See original GitHub issueThere is in the end unused and not existing import. Seems like generated by mistake https://unpkg.com/react-virtualized@9.20.1/dist/es/WindowScroller/utils/onScroll.js
import { bpfrpt_proptype_WindowScroller } from '../WindowScroller.js';
/cc @brigand
Issue Analytics
- State:
- Created 5 years ago
- Reactions:22
- Comments:9
Top Results From Across the Web
Jest and ESM throwing errors with import fs - Stack Overflow
I've looked only, through many examples and Q&A, but almost all of them refers to changes with ts-node or babel . My package...
Read more >How to Fix "SyntaxError: Cannot use import statement outside ...
In this post, we'll learn more about the "SyntaxError: Cannot use import statement outside a module" error and how to fix it in...
Read more >TypeScript: Cannot use import statement outside a module
To solve the error "Cannot use import statement outside a module" in TypeScript, set the module option to commonjs in your tsconfig.json file...
Read more >rollup.js
You can provide an optional Rollup configuration file to simplify command line ... since a proper understanding of the import and export statements...
Read more >Avoid these issues when using new ECMAScript modules in ...
But if your package uses import/export and you don't tell Jest that the package is using es6 modules then it will try to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For esbuild, i’ve redirected imports to umd and it seems to work
For anyone using Vite v2.3.0 or newer, you can apply the esbuild plugin that @YurySolovyov wrote above by modifying your Vite config to include the following: