From 8813e9bc57bf9ba73d8f678098a7b4d006eb9266 Mon Sep 17 00:00:00 2001 From: Stanimira Vlaeva Date: Wed, 18 Jul 2018 11:38:22 +0100 Subject: [PATCH] fix: require devtools-elements.js with the extension mentioned explicitly (#6079) This is a workaround for the issue with `@ngtools/webpack@6.1.0-rc.2`, described here: https://github.com/NativeScript/nativescript-dev-webpack/issues/607#issuecomment-405209925 --- tns-core-modules/ui/frame/frame.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/frame/frame.android.ts b/tns-core-modules/ui/frame/frame.android.ts index d1ca8d7c3..1a7f3df3e 100644 --- a/tns-core-modules/ui/frame/frame.android.ts +++ b/tns-core-modules/ui/frame/frame.android.ts @@ -42,7 +42,7 @@ let fragmentId = -1; export let moduleLoaded: boolean; if (global && global.__inspector) { - const devtools = require("tns-core-modules/debugger/devtools-elements"); + const devtools = require("tns-core-modules/debugger/devtools-elements.js"); devtools.attachDOMInspectorEventCallbacks(global.__inspector); devtools.attachDOMInspectorCommandCallbacks(global.__inspector); }