From 3f85250f37501f2cf233166199d1a378b249bf75 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Tue, 17 Jul 2018 14:41:16 +0300 Subject: [PATCH] fix(devtools): require .js file explicitly 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 d1ca8d7c37..1a7f3df3e1 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); }