Git Product home page Git Product logo

reacti18nrouting's People

Contributors

benatespina avatar gorkalaucirica avatar mktoast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

reacti18nrouting's Issues

[RFC] Decouple from translation library

Currently, we only support Yahoo's react-intl, it's the most popular library to make things work in React around translations. However, there are another good better alternatives like LinguiJs (check out this information if you don't know what library is).

So, the idea behind this issue is to become our library more decoupled from translations libraries allowing the usage of our favorite library.

Uncaught TypeError: (0 , _reactI18nRouting.defaultUnprefixed) is not a function

I'm trying to configure my app using the basic configuration of ReactI18nRouing described in https://github.com/FriendsOfECMAScript/ReactI18nRouting/blob/master/docs/basic_usage.md

First I had an issues with running webpack (described here: https://stackoverflow.com/questions/56144968/node-modules-outside-of-the-project-directory-are-not-transpiled-by-babel-7).

Now webpack is generating files properly, but after page refresh I have the following error:

app.jsx:15 Uncaught TypeError: (0 , _reactI18nRouting.defaultUnprefixed) is not a function
    at Object../assets/js/app.jsx (app.jsx:15)
    at __webpack_require__ (bootstrap:78)
    at checkDeferredModules (bootstrap:45)
    at Array.webpackJsonpCallback [as push] (bootstrap:32)
    at app.js:1

How this can be fixed?

My configuration of webpack / babel was described in the stackoverflow question. The only change that I've done in webpack.config.js is:

config.module.rules.push({
  test: /\.js$/,
  include: [/node_modules\/@foes/],
  loader: 'babel-loader',
  options: {
    rootMode: 'upward'
  }
});

The code of my app.jsx is just copy-pased from your basic_usage.md

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.