mathiasbynens / utf8.js

A robust JavaScript implementation of a UTF-8 encoder/decoder, as defined by the Encoding Standard.
https://git.io/utf8js
MIT License
556 stars 115 forks source link

Failed to find module: "utf8" #32

Closed KeyvanMM closed 6 years ago

KeyvanMM commented 7 years ago

Hi I've added the plugin using: npm install utf8

and then added this to one page: var utf8 = require('utf8');

but on navigating to that page i got this error: An uncaught Exception occurred on "main" thread. com.tns.NativeScriptException: Failed to find module: "utf8", relative to: app/tns_modules/

I had no problem with other plugins, maybe I forget some thing?

pineapplethief commented 6 years ago

Having this too, using webpack and es6 import utf8 from 'utf8' syntax. module is present in package.json as far as I can see

pineapplethief commented 6 years ago

Oops, it's working now, must have been some webpack or yarn glitch

mathiasbynens commented 6 years ago

https://github.com/facebook/react-native/pull/17146