fb55/domutils

Unable to resolve "domhandler" from "node_modules/domutils/lib/index.js"

bbuchalter opened this issue · 1 comments

First, let me apologize for not being confident in how to ask my question in a way that is helpful. I know open source maintainers work is difficult and under compensated. Thank you for all you do @fb55!

Simply put, I am seeing this error while working through instructions for running detox in a React Native project via Expo.

Unable to resolve "domhandler" from "node_modules/domutils/lib/index.js"

image

I've taken the following steps:

  • Verified that the path exists and has a package.json that points to real files that have real code:
% cat node_modules/domhandler/package.json |grep main
    "main": "lib/index.js",
% head node_modules/domhandler/lib/index.js 
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;

Past this, I'm not sure how to continue debugging. Any help you can offer would be very welcome. Thank you!

Ultimately, I believe I was dealing with either a stale React Native cache or stale watchman cache. The content here helped me. Hopefully this helps some else! https://medium.com/komenco/useful-react-native-npm-scripts-6c07b04c3ac3#.63boty1oh