GithubHelp home page GithubHelp logo

Duplicate import declarations about rollup HOT 4 CLOSED

rollup avatar rollup commented on June 3, 2024
Duplicate import declarations

from rollup.

Comments (4)

Victorystick avatar Victorystick commented on June 3, 2024

That ain't right. Thank you for raising the issue!

from rollup.

yairEO avatar yairEO commented on June 3, 2024

I am using Gulp to bundle all files in a folder and generate some file which has X amount of exports (from each file in the folder), the reason is so I could do something like this:

import * as controllers from 'controllers_bundle';

which will import all my controllers' functions so I won't have to manually write each import for each controller.

Anyway, when then gulp task combines the files, I get one big file which has many import declaration which repeat themselves since those controller files are mostly importing the same files themselves.

I then get a Duplicate declaration error on my bash console and my everything stops. I would think Rollup would be smart enough to internally check if an imported file has in itself duplicate import declarations and remove them...

from rollup.

eventualbuddha avatar eventualbuddha commented on June 3, 2024

@yairEO that doesn't sound like the same issue as was fixed here. Could you open another issue with some sample code that reproduces the problem you're seeing?

from rollup.

yairEO avatar yairEO commented on June 3, 2024

@eventualbuddha - sure, I will do that, hold on. But with the same title as this..?
Seems like the title of this issue should be more specific

opened new issue - #331

from rollup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.