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

Error: Cannot find module 'upath' #151

Closed
MartinCerny-awin opened this issue Sep 18, 2018 · 3 comments
Closed

Error: Cannot find module 'upath' #151

MartinCerny-awin opened this issue Sep 18, 2018 · 3 comments

Comments

@MartinCerny-awin
Copy link

I am using babel-plugin-react-intl in react-native project. When I try to extract messages I get an error:

$ babel --plugins react-intl src/*
Error: Cannot find module 'upath'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Volumes/sites/monyl/node_modules/babel-plugin-react-intl/lib/index.js:22:33)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)

My .babelrc looks like this:

{
  "presets": ["module:metro-react-native-babel-preset"],
  "plugins": [
    [
      "react-intl",
      {
        "messagesDir": "./i18n/messages",
        "enforceDescriptions": false
      }
    ]
  ]
}
@ghost
Copy link

ghost commented Sep 18, 2018

Same here!

@ghost
Copy link

ghost commented Sep 18, 2018

@redonkulus
Copy link
Member

Closed via #154

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

Successfully merging a pull request may close this issue.

2 participants