disney/meteor-base

build-meteor-bundle.sh error

EdoElgx opened this issue · 2 comments

Hello All,

As a docker newbie, I'm trying a local deployment on macOS 12.7 (Docker Desktop version 4.21.1 (114176), Compose v2.19.1). My Meteor version is 2.13.3.

When running the docker-compose up command, I get the following error:

 => ERROR [app stage-0 5/5] RUN bash /docker/build-meteor-bundle.sh                                                         373.4s
------
 > [app stage-0 5/5] RUN bash /docker/build-meteor-bundle.sh:
0.172
0.172 [-] Building Meteor application bundle...
0.175
0.175     This container can use 7859M memory in total.
0.175     If it aborts with an out-of-memory (OOM) or ‘non-zero exit code 137’ error message,
0.175     please increase the container’s available memory.
0.175
0.175     See https://github.com/meteor/meteor/issues/9568 for details.
0.175
3.060
3.060 Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app
3.060 directory will be incorrect if you ever attempt to perform any Meteor tasks as
3.060 a normal user. If you need to fix your permissions, run the following command
3.060 from the root of your project:
3.060
3.061   sudo chown -Rh <username> .meteor/local
3.061
142.7
142.7 Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app
142.7 directory will be incorrect if you ever attempt to perform any Meteor tasks as
142.7 a normal user. If you need to fix your permissions, run the following command
142.7 from the root of your project:
142.7
142.7   sudo chown -Rh <username> .meteor/local
142.7
218.9 ⚡️ Building packages to make them available to export analyzer...
271.0 ⚡️ Packages built (52140.39ms)
271.0 ⚡️ Building with Vite...
277.6 vite v3.2.7 building for production...
277.6 transforming...
277.6 ✓ 315 modules transformed.
277.6 rendering chunks...
277.6 node_modules/.vite-meteor/dist/meteor-entry.js   0.02 KiB / gzip: 0.04 KiB
277.6 node_modules/.vite-meteor/dist/dashboard.js      0.18 KiB / gzip: 0.15 KiB
277.6 node_modules/.vite-meteor/dist/style.css         1.12 KiB / gzip: 0.52 KiB
277.6 node_modules/.vite-meteor/dist/Login.js          100.80 KiB / gzip: 20.00 KiB
277.6 node_modules/.vite-meteor/dist/main.js           387.16 KiB / gzip: 87.88 KiB
277.6
277.6 ⚡️ Build successful (6509.06ms)
317.5 Browserslist: caniuse-lite is outdated. Please run:
317.5   npx update-browserslist-db@latest
317.5   Why you should do it regularly: https://github.com/browserslist/update-db#readme
370.1 Errors prevented bundling:
370.1 While minifying app code:
370.1 packages/minifyStdJS/plugin/minify-js.js:49:25: terser minification error
370.1 (SyntaxError:"Import" statement may only appear at the top level)
370.1 Source file: node_modules/mongo-object/dist/esm/main.js  (2:0)
370.1 Line content: import MongoObject from './mongo-object.js';
370.1
370.1 at maybeThrowMinifyErrorBySourceFile
370.1 (packages/minifyStdJS/plugin/minify-js.js:49:25)
370.1 at packages/minifyStdJS/plugin/minify-js.js:77:11
370.1 at Array.forEach (<anonymous>)
370.1 at MeteorMinifier.processFilesForBundle
370.1 (packages/minifyStdJS/plugin/minify-js.js:66:11)
370.1
370.1
------
failed to solve: process "/bin/sh -c bash $SCRIPTS_FOLDER/build-meteor-bundle.sh" did not complete successfully: exit code: 1

Any pointer on how to solve this is highly welcomed.

I suggest you ask on the meteor forums, this repo is only for bugs related to this project's code.

Thank you.