Skip to content

Unable to build an adapted Vue.js project with js-toolkit version 2.28.3Β #837

Open
@pandeytanmay

Description

@pandeytanmay

πŸ‘€ Please check the troubleshooting guide before reporting anything. It contains important information on how to fix or diagnose errors.

Issue type (mark with x)

  • πŸ€” Question
  • πŸ› Bug report
  • 🎁 Feature request
  • πŸ€·β€β™€οΈ Other

Version (mark with x)

  • 2️⃣ v2.x
  • 3️⃣ v3.x

Description

Desired behavior:
npm run build:liferay on an adapted vuejs project should run successfully and generate a jar deployable to Liferay.
Current behavior:
Running npm run build:liferay results in the following error:

`internal/fs/utils.js:269
throw err;
^

Error: ENOENT: no such file or directory, scandir '<projectBaseDir(redacted)>\build\static\js'
at Object.readdirSync (fs.js:955:3)
at buildWith (<projectBaseDir(redacted)>\node_modules\liferay-npm-build-support\lib\scripts\build\index.js:63:14)
at Object.default_1 [as default] (<projectBaseDir(redacted)>\node_modules\liferay-npm-build-support\lib\scripts\build\index.js:42:13)
at Object. (<projectBaseDir(redacted)>\node_modules\liferay-npm-build-support\bin\lnbs-build.js:8:40)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
errno: -4058,
syscall: 'scandir',
code: 'ENOENT',
path: '<projectBaseDir(redacted)>\build\static\js'
}`

Repro instructions (if applicable):
Here is how to recreate the problem:

Install node : v12.22.1

Install npm : 6.14.12

Run the following from command prompt in sequence:

npm i -g @vue/cli

npm install -g yo 
npm install -g generator-liferay-js

vue create hello-world

cd hello-world

(Select vue 2 while creating this new project)
yo liferay-js:adapt
(select appropriate options while running the preceding command (yo liferay-js:adapt))

npm install

npm run build:liferay

Other information (environment, versions etc):
Node version : v12.22.1

npm version : 6.14.12
vue version : vue@2.6.14

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions