npwd icon indicating copy to clipboard operation
npwd copied to clipboard

Building output code causing errors when running the server

Open TwanLuttik opened this issue 1 year ago • 3 comments

Development Issue

Yes

Phone Version

Issue Description

When I clone the repo from the main branch, and yarn install and than yarn build. it works fine, after I replaced the dist from what I have build into the resource folder it spits out a error on the initializing

image

and this piece of code is extra that causes the issue after being build

// ../../node_modules/app-root-path/index.js
var require_app_root_path2 = __commonJS({
  "../../node_modules/app-root-path/index.js"(exports, module2) {
    "use strict";
    var lib = require_app_root_path();
    module2.exports = lib(__dirname);
  }
});

so the latest code on the main branch is not the same as if you download them from the releases page if unless there is a step i have missed before yarn build

Issue Reproduction

=-

Evidence

TwanLuttik avatar Mar 07 '23 19:03 TwanLuttik

Having same issue. Hopefully this gets fixed. Because right now we are working with no other phone script. This resource was fine until I decided to do some changes to the sc...

XdGoldenTigerOfficial avatar Mar 10 '23 08:03 XdGoldenTigerOfficial

First of all, make sure you've downloaded the 1.7.0 built release files, and do not place npwd inside a [foldername] folder. npwd needs to be in the root of /resources

itschip avatar Mar 10 '23 10:03 itschip

This goes for building from source as well.

itschip avatar Mar 10 '23 10:03 itschip