facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.73k stars 24.29k forks source link

'babelHelpers.taggedTemplateLiteral' is undefined in react native wen using tagged template strings #4838

Closed setdvd closed 8 years ago

setdvd commented 8 years ago

I'm trying to use tagged template strings in react native app (rn version 0.16) like this

    let i18n = function(){
        return 'should be fun';
    };
    console.log(i18n`not fun`);

I get exception - 'babelHelpers.taggedTemplateLiteral' is undefined;

if I use just template string like:

    console.log(`Fun`);

It is working.

Since 0.16 rn moved to babel 6 and may be it is not only rn specific. I have check packager and "babel-plugin-transform-es2015-template-literals" included.

Any idea?

facebook-github-bot commented 8 years ago

Hey setdvd, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

brentvatne commented 8 years ago

Is this still an issue? Seems like it might have been a Babel6 bug, perhaps it is fixed now? If not, please reopen the issue :)

setdvd commented 8 years ago

It was solved in RN 18