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

Error when importing (iife format) #2

Closed
arthurmchr opened this issue Aug 22, 2016 · 16 comments
Closed

Error when importing (iife format) #2

arthurmchr opened this issue Aug 22, 2016 · 16 comments

Comments

@arthurmchr
Copy link

arthurmchr commented Aug 22, 2016

Hi,

I got an error when i try to use this plugin :
logo.svg does not export default

I must doing something wrong but I do not find.
Here are the plugins I am using :

const plugins = [
    json(),
    image(),
    nodeResolve(),
    commonjs(),
    babel({
        presets: 'es2015-rollup',
        include: [
            '**/*.js'
        ],
        exclude: [
            'node_modules/**',
            'app/media/js/vendors/**'
        ]
    })
];

I follow the example to use it.

Thanks for any help.

@austbot
Copy link

austbot commented Oct 12, 2016

Same here 0.36.1

@piotr-cz
Copy link

I'm getting an error 'default' is not exported by xxx.svg

@antony
Copy link

antony commented May 13, 2017

Also getting the same issue. Don't forget to vote on this issue.

@legrego
Copy link

legrego commented Jan 25, 2018

This happens for the "es" and "cjs" formats too

@timdp timdp mentioned this issue Sep 2, 2018
@timdp
Copy link

timdp commented Sep 2, 2018

I've created #7 with a workaround. You can install @timdp/rollup-plugin-image if you want to try it out.

@lcfd
Copy link

lcfd commented Jan 9, 2019

Same issue with Rollup v 1.1.0
Error: 'default' is not exported by icons/user.png

@yash2code
Copy link

same issue

@regrettably
Copy link

This is still an issue for me too.

@antony
Copy link

antony commented Apr 27, 2019

@timdp your package doesn't seem to fix this issue for me. Am I right to assume that a straight swap should be all that is required?

@b12f
Copy link

b12f commented May 14, 2019

@maintainers are you actually looking at this? I've just ran into the same issue and can't believe this has been open since 2016.

@antony
Copy link

antony commented May 14, 2019

@b12f Weird, maybe they didn't get the paycheck you sent them. Perhaps try sending it again.

@b12f
Copy link

b12f commented May 14, 2019

@antony chill bro I know OSS development ain't the most thankful job, but a "we're accepting PRs" on this is the least you can do. Plus there's a proposed fix by @timdp (which afaics doesn't work 100%), so that's a possible PR we could work from. I'd even chip in and write code as well, but that's not much use as long as the project appears abandoned.

@antony
Copy link

antony commented May 14, 2019

So feel free to check out the PR, diagnose, and fix the issues and resubmit.

The project isn't abandoned, it's in active use by a number of people (including me) every day. The maintainer is busy with a huge amount of other projects right now, so this one might not be the highest priority.

The project is awaiting your contribution, and should you be able to fix the issue, it will be merged in in due course.

@houd1ni
Copy link

houd1ni commented Jul 16, 2019

@b12f it's better to make yet another JS-framework than maintain such a good thing as rollup for maintainers here =)

@adonespitogo
Copy link

@timdp 's fork worked for me.

@shellscape
Copy link
Contributor

We're moving this plugin to https://github.com/rollup/plugins where it'll get some TLC. I'm running the changes in #7 by the team. From my local tests, it looks like it works. Keep an eye out for this repo being archived and @rollup/plugin-images.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests