HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
166 stars 103 forks source link

unable to resolve module 'escpos-printer-toolkit' from node_modules #20

Closed DilipSutharr closed 4 years ago

DilipSutharr commented 4 years ago

Hey, After i upgraded to v1.1.3 from v1.1.1, i am getting following error

Unable to resolve module 'escpos-printer-toolkit' from 'node_modules/react-native-thermal-receipt-printer/dist/index.js'

HeligPfleigh commented 4 years ago

I've removed that module in v1.1.3, you should try to install --force or remove your yarn.lock/package-lock.json then re-install again.

DilipSutharr commented 4 years ago

I tried what you said but still getting same error. Please help

HeligPfleigh commented 4 years ago

When I create a new project then add this module, I don't have any error like your. You should clear cache:

watchman watch-del-all
rm -rf node_modules yarn.lock && yarn
yarn start --reset-cache