Duplicate declaration "bpfrpt_prototype_Scroll"
See original GitHub issueReporting a Bug?
The built es version of https://unpkg.com/react-virtualized@9.18.4/dist/es/List/List.js has a duplicate declaration of a named import. You can see it at the bottom of the file:
import { bpfrpt_proptype_Scroll } from '../Grid';
// ...
import { bpfrpt_proptype_Scroll } from './types';
Found this gives me an error in storybook/webpack:
info @storybook/react v3.3.11
info
info => Loading custom .babelrc
info => Loading custom addons config.
info => Using default webpack setup based on "Create React App".
info Building storybook ...
ERR! Failed to build the storybook
ERR! ./stories/node_modules/react-virtualized/dist/es/List/List.js
ERR! Module build failed: Duplicate declaration "bpfrpt_proptype_Scroll"
ERR!
ERR! 360 | import { bpfrpt_proptype_RowRenderer } from './types';
ERR! 361 | import { bpfrpt_proptype_RenderedRows } from './types';
ERR! > 362 | import { bpfrpt_proptype_Scroll } from './types';
ERR! | ^
ERR! 363 | import PropTypes from 'prop-types';
ERR!
ERR! BabelLoaderError: Duplicate declaration "bpfrpt_proptype_Scroll"
ERR!
ERR! 360 | import { bpfrpt_proptype_RowRenderer } from './types';
ERR! 361 | import { bpfrpt_proptype_RenderedRows } from './types';
ERR! > 362 | import { bpfrpt_proptype_Scroll } from './types';
ERR! | ^
ERR! 363 | import PropTypes from 'prop-types';
ERR!
ERR! at transpile (/Users/kdodds/Desktop/downshift/node_modules/babel-loader/lib/index.js:65:13)
ERR! at /Users/kdodds/Desktop/downshift/node_modules/babel-loader/lib/fs-cache.js:118:18
ERR! at ReadFileContext.callback (/Users/kdodds/Desktop/downshift/node_modules/babel-loader/lib/fs-cache.js:31:21)
ERR! at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
ERR! @ ./stories/node_modules/react-virtualized/dist/es/List/index.js 8:12-29
ERR! @ ./stories/node_modules/react-virtualized/dist/es/index.js
ERR! @ ./stories/examples/windowing-with-react-virtualized.js
ERR! @ ./stories/config.js
ERR! @ multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js ./stories/config.js
I’m not sure how this happened. I looked at the source code and I don’t know where those declarations are coming from… 🤔
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Prototype scrolling with overflow behavior - Figma Help Center
Users on any team or plan can use scrolling overflow in their prototypes. Anyone with can edit access to a file can create...
Read more >US5371851A - Graphical data base editor - Google Patents
A useful tool in the display manipulation provided by system 100 is the use of scroll bars, such as scroll bar 178 shown...
Read more >GDB: gdb/ChangeLog-1995 | Fossies
As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively...
Read more >AAP Published Questions - All Items - DAU
The below is an excerpt from the IPMR DID corroborating my statement. ... The QASP is not a part of the contract nor...
Read more >Create scrollable artboards in XD - Adobe Support
Scroll groups lets you prototype a window of content that can be scrolled horizontally, vertically, or in both the directions. More like this....
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
@bvaughn Reverted changes to 9.18.0. Deprecated broken releases. Published 0.18.5. I guess we need to build examples from built files to catch such gotchas.
Sorry for broken releases, guys.
I’ve also encountered this issue when bundling code with webpack.
Also, when bundling code with browserify I get
Uncaught ReferenceError: bpfrpt_proptype_ScrollIndices is not defined
Both this issues did not occur in version 9.18.2