Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quasar build -m bex can't produced dist/bex/Package directory on @quasar/app-webpack-v3.5.0 #13141

Closed
swtanggara opened this issue Apr 11, 2022 · 2 comments

Comments

@swtanggara
Copy link

What happened?

This issue is related to #12969. Sorry if I'm late testing and reporting it with @quasar/app-webpack-v3.4.7 release and just report this on @quasar/app-webpack-v3.5.0. But I found that the error still exist--with the same reproduction method.

With the current @quasar/app-webpack-v3.5.0, I've tried to fix this on my local machine and edit file [src]/[@quasar]/app-webpack/lib/webpack/bex/plugin.bex-packager.js on node_modules directory, change line 2 from:

const path = require('path')
const fse = require('fs')

into:

const path = require('path')
const fse = require('fs-extra')

and it seems the quasar build -m bex command run correctly then.

Code_KpVz46OqrW

What did you expect to happen?

With my workaround above I'm pretty happy with the result. Please don't bother with my problem report. I am very pleased with your work that has made this framework so amazing.

Reproduction URL

local

How to reproduce?

  1. Create a new quasar project by executing yarn create quasar
  2. Add BEX mode by executing quasar mode add bex
  3. Build prod BEX with command quasar build -m bex
  4. You'll see the errors.

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

BEX Mode

Platforms/Browsers

Firefox, Chrome, Microsoft Edge

Quasar info output

Operating System - Windows_NT(10.0.22000) - win32/x64
NodeJs - 16.14.2

Global packages
  NPM - 8.5.0
  yarn - 1.22.18
  @quasar/cli - 1.3.2
  @quasar/icongenie - 2.5.1
  cordova - Not installed

Important local packages
  quasar - 2.6.6 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-webpack - 3.5.0 -- Quasar Framework App CLI with Webpack
  @quasar/extras - 1.13.5 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.2.31 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.0.14
  pinia - 2.0.13 -- Intuitive, type safe and flexible Store for Vue
  vuex - Not installed
  electron - Not installed
  electron-packager - Not installed
  electron-builder - Not installed
  @babel/core - 7.17.9 -- Babel compiler core.
  webpack - 5.72.0 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  webpack-dev-server - 4.8.1 -- Serves a webpack app. Updates the browser on changes.
  workbox-webpack-plugin - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  typescript - 4.5.5 -- TypeScript is a language for application scale JavaScript development
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Networking
  Host - XXXXX
  Wi-Fi - XX.XX.XX.XX

Relevant log output

Build mode................ bex
 Pkg quasar................ v2.6.6
 Pkg @quasar/app-webpack... v3.5.0
 Pkg webpack............... v5
 Debugging................. no
 Publishing................ no

 Configured browser support (>= 86.52% of global marketshare):
 · Chrome for Android >= 100
 · Firefox for Android >= 98
 · Android >= 99
 · Chrome >= 91
 · Edge >= 96
 · Firefox >= 89
 · iOS >= 12.2-12.5
 · Opera >= 79
 · Safari >= 13.1

{
  dev: false,
  prod: true,
  mode: { bex: true },
  modeName: 'bex',
  target: {},
  targetName: undefined,
  emulator: undefined,
  arch: {},
  archName: undefined,
  bundler: {},
  bundlerName: undefined,
  debug: false,
  publish: undefined,
  vueDevtools: false
}
 App • Chaining "Renderer" Webpack config
 App • Chaining "Main" Webpack config
 App • Cleaned build artifact: "XXX\src\dist\bex"
 App •  WAIT  • Compiling of "Renderer" in progress...
 App •  WAIT  • Compiling of "Main" in progress...
 App •  DONE  • "Main" compiled with success • 10818ms
 App •  DONE  • "Renderer" compiled with success • 14471ms
  TypeError: fse.ensureDirSync is not a function

  - plugin.bex-packager.js:45 BexPackager.setupDirectories
    [src]/[@quasar]/app-webpack/lib/webpack/bex/plugin.bex-packager.js:45:9

  - plugin.bex-packager.js:20
    [src]/[@quasar]/app-webpack/lib/webpack/bex/plugin.bex-packager.js:20:14


  - Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync]
    [src]/[tapable]/lib/Hook.js:18:14

  - Compiler.js:498
    [src]/[webpack]/lib/Compiler.js:498:23

  - Compiler.js:919 Compiler.emitRecords
    [src]/[webpack]/lib/Compiler.js:919:5

  - Compiler.js:490
    [src]/[webpack]/lib/Compiler.js:490:11

  - Compiler.js:885
    [src]/[webpack]/lib/Compiler.js:885:14


  - Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync]
    [src]/[tapable]/lib/Hook.js:18:14

Additional context

No response

@github-actions
Copy link

Hi @swtanggara! 👋

It looks like you provided an invalid or unsupported reproduction URL.
Do not use any service other than Codepen, jsFiddle, Codesandbox, and GitHub.
Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc.
Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

@rstoenescu
Copy link
Member

Fixed in q/app-webpack v3.5.1 -- just released it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants