npwd
npwd copied to clipboard
Building output code causing errors when running the server
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
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
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...
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
This goes for building from source as well.