Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve module util #296

Open
shangxinbo opened this issue Aug 15, 2017 · 4 comments
Open

Unable to resolve module util #296

shangxinbo opened this issue Aug 15, 2017 · 4 comments

Comments

@shangxinbo
Copy link

I run it in react-native project. maybe markdown is used for node ,and can't used by webpack.I know util is a module of node. error like this

The development server returned response error code: 500

URL: http://10.111.23.190:19001/node_modules/react-native-scripts/build/bin/crna-entry.bundle?platform=android&dev=true&strict=false&minify=false&hot=true&assetPlugin=expo/tools/hashAssetFiles

Body:
{"from":"D:\github\treering-mobile\node_modules\markdown\lib\markdown.js","to":"util","message":"Unable to resolve module util from D:\\github\\treering-mobile\\node_modules\\markdown\\lib\\markdown.js: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.","name":"UnableToResolveError","type":"UnableToResolveError","errors":[{}]}
processBundleResult
BundleDownloader.java:172
access$100
BundleDownloader.java:38
execute
BundleDownloader.java:108
emitChunk
MultipartStreamReader.java:69
readAllParts
MultipartStreamReader.java:116
onResponse
BundleDownloader.java:96
execute
RealCall.java:126
run
NamedRunnable.java:32
runWorker
ThreadPoolExecutor.java:1112
run
ThreadPoolExecutor.java:587
run
Thread.java:841

@satotake
Copy link

satotake commented Sep 7, 2017

@shangxinbo
I had the same issue in my react-native project.
This is a just workaround but it works for my case.

npm install util

ref: facebook/react-native#526

@rfdc
Copy link

rfdc commented May 16, 2018

npm install util - solved the first problem but know it shows -> "Can't find variable buffer" :(

@tlofano
Copy link

tlofano commented May 18, 2018

@rfdc I've the same issue, "Can't find variable buffer".
Can you find any solution?

@rfdc
Copy link

rfdc commented May 19, 2018

@tlofano I kind of quit and doing something else atm until it is fixed - which is pretty annoying.
But I have opened an Issue Case and the plugin contributors posted some work around but not a solution
aws-amplify/amplify-js#840
Hope that helps, let me know how you go on my link pls
Cheers
Raf

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

No branches or pull requests

4 participants