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

Unable to find a browserify-shim config section #4

Open
gimre opened this issue Feb 11, 2016 · 8 comments
Open

Unable to find a browserify-shim config section #4

gimre opened this issue Feb 11, 2016 · 8 comments

Comments

@gimre
Copy link

gimre commented Feb 11, 2016

Hey, I'm using your plugin and it seems to be complaining about not being able to find a definition for babel/external-helpers. Do you have any idea what I'm doing wrong?

Error: Unable to find a browserify-shim conig section in the package.json for babel/external-helpers while parsing file: babel/external-helpers

Thanks for making this!

@rstone770
Copy link
Owner

Hi

Sorry for not being able to respond, Ive been in a middle of a move for the last couple weeks and am just settling down. Are you still having issues? I can look into it once my pc is setup.

@gimre
Copy link
Author

gimre commented Mar 7, 2016

Hey,

No problem, thanks for replying! Yes, same issue, not sure what I am misconfiguring :(

@rstone770
Copy link
Owner

Would you cp your shim and problematic bundler code?

@hackel
Copy link

hackel commented Dec 20, 2016

I just tried to use this package and got the same error. This is caused by BabelifyExternalHelpers.defaults in source/index.js#L22. It eventually tries to require("babel/external-helpers"), which does not exist. I assume this is why browserify-shim is complaining. I changed this to name: 'babel-helpers', and the error went away. I'm not sure if this is the correct solution, but it seems to work.

@rstone770
Copy link
Owner

interesting. Ill take a look at it tonight.

@halfninja
Copy link

I've just tried this module and getting the same problem. Did you get anywhere?

@rstone770
Copy link
Owner

I honestly haven't looked at this issue in a while. Although i think that you should try transform-runtime which is officially supported by babel. Please let me know if that plugin does the job, if so i think i will depreciate this transform. If it doesn't work, I have a v2 refactor that i can release.

@halfninja
Copy link

I gave transform-runtime a go and it did the job (our output file ended up larger, but that's another matter). So I think you could start pointing everyone in that direction.

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

4 participants