Trying to build assets with npm run build-assets
Assets are built successfully as the necessary libraries are installed
```bash node
soqoni-web (master) ✗ npm run build-assets
[email protected] build-assets /Users/raymaun/Projects/soqoni-web
webpack -p
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
(node:56450) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
Hash: b29d72996bbca033b9fb
Version: webpack 4.27.1
Time: 39970ms
Built at: 04/30/2019 17:16:23
Asset Size Chunks Chunk Names
CircularStd-Bold.ce2a6c4154de87815e8971d21a987403.ttf 84.3 KiB [emitted]
CircularStd-Book.c43e9feb9ca817ae86afb47fd0ee4f94.ttf 80.9 KiB [emitted]
CircularStd-Medium.46d551dfd0caa61f1332d7c477f584c2.ttf 84.4 KiB [emitted]
GT-Pressura-Regular.3e1e2cb63cb1b0dd7ec3a9a938e652d8.ttf 132 KiB [emitted]
Larsseit.7d40b6a513dd4c1adefd10dac29bad32.ttf 137 KiB [emitted]
Roboto-Bold.c0f1e4a4fdfb8048c72e86aadb2a247d.woff2 63.3 KiB [emitted]
Roboto-Bold.eed9aab5449cc9c8430d7d258108f602.woff 88.2 KiB [emitted]
Roboto-Light.3c37aa69cd77e6a53a067170fa8fe2e9.woff2 62.8 KiB [emitted]
Roboto-Light.ea36cd9a0e9eee97012a67b8a4570d7b.woff 87.6 KiB [emitted]
Roboto-Medium.1561b424aaef2f704bbd89155b3ce514.woff2 63.9 KiB [emitted]
Roboto-Medium.cf4d60bc0b1d4b2314085919a00e1724.woff 88.4 KiB [emitted]
Roboto-Regular.3cf6adf61054c328b1b0ddcd8f9ce24d.woff 87.7 KiB [emitted]
Roboto-Regular.5136cbe62a63604402f2fedb97f246f8.woff2 63.3 KiB [emitted]
Roboto-Thin.1f35e6a11d27d2e10d28946d42332dc5.woff2 61.6 KiB [emitted]
Roboto-Thin.44b78f142603eb69f593ed4002ed7a4a.woff 86.1 KiB [emitted]
align_center.261490e2a4abf6925c5e533cacef7361.svg 239 bytes [emitted]
align_justify.2eecf9cbf6e5c9260e4c366e1f2b49b1.svg 238 bytes [emitted]
align_left.ab9f0ff87e27ff7b6a58106c012daf22.svg 240 bytes [emitted]
align_right.b45aa1ea0df06c6a9506b0cd3e8527fe.svg 239 bytes [emitted]
arrivals-kal-visuals.3e731092b6ec6778830ff2f2e6673972.png 199 KiB [emitted]
b_clothing_apparel.b62c18a10844519a2e2f007e60e46f60.png 325 KiB [emitted] [big]
b_gifts.0417afc8b592a3d2a34ea01d7eff242e.png 342 KiB [emitted] [big]
b_jewelry_accessories.f76d0136b5dd336d9bac9713bcc2bcc2.png 350 KiB [emitted] [big]
b_wedding_party.550bfd41738a4bc015e7b72479f9b128.png 412 KiB [emitted] [big]
chevron-right.b90a94d3bf483b8d97e4647049ecdaa2.svg 210 bytes [emitted]
close.ec0a5fedbc923f0763a1886366f4967c.svg 266 bytes [emitted]
dashboard-next.1ae84770a4d1a8ab57cc.js 2.5 MiB 1 [emitted] [big] dashboard-next
dashboard.3e25b2f3439a82e7ce81.css 224 KiB 0 [emitted] dashboard
dashboard.3e25b2f3439a82e7ce81.js 532 KiB 0 [emitted] [big] dashboard
document.205b268a75f225125e32.css 2.52 KiB 2 [emitted] document
document.205b268a75f225125e32.js 1010 bytes 2 [emitted] document
done.6469e271be639f7e5f1e45ffbb16c876.svg 215 bytes [emitted]
food_beverage.a8734dc815746d69611c6fc55d6f32a2.png 168 KiB [emitted]
format_clear.9ea4294f9494325a0a198b0201443e63.svg 296 bytes [emitted]
gt-walsheim-web.a78cebccad7eac33f080875974108711.ttf 92.5 KiB [emitted]
home_living.67fd633e1db657ad6577d56c76565ff4.jpg 102 KiB [emitted]
insert_link.9523768776537a425ceaf093d2dddb00.svg 375 bytes [emitted]
insert_photo.497fe7788e4adeb99de29152704b8d32.svg 284 bytes [emitted]
jewelry-accessories-oladimeji.d539ea5e1ea8aa0e0367de67a7d150f1.png 228 KiB [emitted]
login-background.37d2649918db527e7f5c0dc49475a4ff.svg 16.3 KiB [emitted]
logo-dark.b1ba93dc28e3576f4769cab4b77dbbc7.svg 2.56 KiB [emitted]
logo-light.d493430f320751f6bffac210ced37643.svg 1.2 KiB [emitted]
moderat-bold-webfont.2cb0b082aa64d665f55c964b064676db.woff2 52.8 KiB [emitted]
moderat-bold-webfont.89eb9240f8cff3873105ee6bb4cac566.ttf 88.7 KiB [emitted]
moderat-bold-webfont.a757a12b463c765b554731b47d19f515.woff 63.5 KiB [emitted]
moderat-bold-webfont.e9546d04bb77a7525901c1b816628ff3.svg 566 KiB [emitted] [big]
moderat-bold-webfont.f780cc62da4b3e34ecbb228b512893f9.eot 63.2 KiB [emitted]
moderat-regular-webfont.19f79ff7375a0be6105e82b4e8c63ff8.woff2 52.9 KiB [emitted]
moderat-regular-webfont.5f091d05fd7338b1f07b557e536292d0.woff 63 KiB [emitted]
moderat-regular-webfont.86591867d5547c3f6ff56c8b774dd40c.eot 63 KiB [emitted]
moderat-regular-webfont.df0b5decb149bf7f8f1463fe4a84c024.ttf 93.1 KiB [emitted]
moderat-regular-webfont.fbe6c99715227f406f4abd3b5a1938c0.svg 583 KiB [emitted] [big]
not-found-404.a4d671be72e48d8ad9e8254297221171.svg 1.21 KiB [emitted]
pass-invisible.d5a74fda0ae925038d3d4a2b9cb030d3.svg 1.67 KiB [emitted]
pass-visible.d7d2a2f14d58c56691160e88464dfdb5.svg 1.24 KiB [emitted]
placeholder255x255.bb658a475f01d6538c482fd852ad782c.png 4.6 KiB [emitted]
quote.a519f24a889ca0c8830dccdd93a810b4.svg 204 bytes [emitted]
soqoni-hero-one.d7f987f0437ab4be11961ac20d74f7ab.jpg 88.7 KiB [emitted]
storefront.3392182b9c5cc950053a.css 274 KiB 3 [emitted] [big] storefront
storefront.3392182b9c5cc950053a.js 467 KiB 3 [emitted] [big] storefront
toys_entertainment.8c9928bcbf7e1c244ccf5439301e79c1.jpg 236 KiB [emitted]
wedding_party.d1b6a7b1059e76a07744bbf7e5073182.jpg 122 KiB [emitted]
what.b7ae116ae14cafe6adfb9cfa119599c5.svg 1.49 KiB [emitted]
Entrypoint dashboard [big] = dashboard.3e25b2f3439a82e7ce81.css dashboard.3e25b2f3439a82e7ce81.js
Entrypoint dashboard-next [big] = dashboard-next.1ae84770a4d1a8ab57cc.js
Entrypoint document = document.205b268a75f225125e32.css document.205b268a75f225125e32.js
Entrypoint storefront [big] = storefront.3392182b9c5cc950053a.css storefront.3392182b9c5cc950053a.js
[2] ./saleor/static/dashboard-next/i18n.ts 478 bytes {1} [built]
[22] ./saleor/static/dashboard-next/types/globalTypes.ts 9.9 KiB {1} [built]
[66] ./node_modules/apollo-link/lib/index.js + 4 modules 8.12 KiB {1} [built]
| 5 modules
[132] ./saleor/static/dashboard-next/configuration/index.tsx 3.95 KiB {1} [built]
[161] ./saleor/static/dashboard-next/auth/index.tsx 716 bytes {1} [built]
[397] ./saleor/static/dashboard-next/index.tsx 9.17 KiB {1} [built]
[454] ./saleor/static/dashboard-next/NotFound.tsx 476 bytes {1} [built]
[456] ./saleor/static/dashboard-next/auth/misc.ts 227 bytes {1} [built]
[884] ./node_modules/apollo-client/index.js + 24 modules 121 KiB {1} [built]
| 25 modules
[917] ./saleor/static/dashboard/scss/dashboard.scss 39 bytes {0} [built]
[972] ./saleor/static/dashboard-next/auth/AuthProvider.tsx 4.07 KiB {1} [built]
[1168] ./saleor/static/dashboard-next/auth/views/Login.tsx 761 bytes {1} [built]
[1850] ./saleor/static/dashboard/js/document.js 31 bytes {2} [built]
[1853] ./saleor/static/js/storefront.js 468 bytes {3} [built]
[1876] ./saleor/static/dashboard/js/dashboard.js + 1 modules 589 bytes {0} [built]
| ./saleor/static/dashboard/js/dashboard.js 125 bytes [built]
| + 1 hidden module
+ 1886 hidden modules
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
moderat-regular-webfont.fbe6c99715227f406f4abd3b5a1938c0.svg (583 KiB)
moderat-bold-webfont.e9546d04bb77a7525901c1b816628ff3.svg (566 KiB)
b_clothing_apparel.b62c18a10844519a2e2f007e60e46f60.png (325 KiB)
b_gifts.0417afc8b592a3d2a34ea01d7eff242e.png (342 KiB)
b_wedding_party.550bfd41738a4bc015e7b72479f9b128.png (412 KiB)
b_jewelry_accessories.f76d0136b5dd336d9bac9713bcc2bcc2.png (350 KiB)
dashboard.3e25b2f3439a82e7ce81.js (532 KiB)
dashboard-next.1ae84770a4d1a8ab57cc.js (2.5 MiB)
storefront.3392182b9c5cc950053a.css (274 KiB)
storefront.3392182b9c5cc950053a.js (467 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
dashboard (757 KiB)
dashboard.3e25b2f3439a82e7ce81.css
dashboard.3e25b2f3439a82e7ce81.js
dashboard-next (2.5 MiB)
dashboard-next.1ae84770a4d1a8ab57cc.js
storefront (741 KiB)
storefront.3392182b9c5cc950053a.css
storefront.3392182b9c5cc950053a.js
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(33,7):
TS2339: Property 'children' does not exist on type 'Pick
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(34,7):
TS2339: Property 'onCompleted' does not exist on type 'Pick
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(35,7):
TS2339: Property 'onError' does not exist on type 'Pick
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(36,7):
TS2339: Property 'variables' does not exist on type 'Pick
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(44,12):
TS2322: Type '{ children: any; mutation: any; onCompleted: any; onError: (err: any) => void; variables: any; update: MutationUpdaterFn
Property 'mutation' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx(73,19):
TS2339: Property 'children' does not exist on type 'Pick
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx(76,19):
TS2339: Property 'variables' does not exist on type 'Pick
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx(83,20):
TS2322: Type '{ children: (queryData: any) => any; fetchPolicy: string; query: any; variables: any; skip: boolean; context: { useBatching: boolean; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes
Property 'fetchPolicy' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--5-1!node_modules/postcss-loader/lib/index.js??ref--5-2!node_modules/sass-loader/lib/loader.js??ref--5-3!saleor/static/dashboard/scss/dashboard.scss:
Asset Size Chunks Chunk Names
Roboto-Bold.c0f1e4a4fdfb8048c72e86aadb2a247d.woff2 63.3 KiB [emitted]
Roboto-Bold.eed9aab5449cc9c8430d7d258108f602.woff 88.2 KiB [emitted]
Roboto-Light.3c37aa69cd77e6a53a067170fa8fe2e9.woff2 62.8 KiB [emitted]
Roboto-Light.ea36cd9a0e9eee97012a67b8a4570d7b.woff 87.6 KiB [emitted]
Roboto-Medium.1561b424aaef2f704bbd89155b3ce514.woff2 63.9 KiB [emitted]
Roboto-Medium.cf4d60bc0b1d4b2314085919a00e1724.woff 88.4 KiB [emitted]
Roboto-Regular.3cf6adf61054c328b1b0ddcd8f9ce24d.woff 87.7 KiB [emitted]
Roboto-Regular.5136cbe62a63604402f2fedb97f246f8.woff2 63.3 KiB [emitted]
Roboto-Thin.1f35e6a11d27d2e10d28946d42332dc5.woff2 61.6 KiB [emitted]
Roboto-Thin.44b78f142603eb69f593ed4002ed7a4a.woff 86.1 KiB [emitted]
chevron-right.b90a94d3bf483b8d97e4647049ecdaa2.svg 210 bytes [emitted]
gt-walsheim-web.a78cebccad7eac33f080875974108711.ttf 92.5 KiB [emitted]
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/sass-loader/lib/loader.js??ref--5-3!./saleor/static/dashboard/scss/dashboard.scss 647 KiB {0} [built]
[3] ./saleor/static/fonts/gt-walsheim-web.ttf 98 bytes {0} [built]
[14] ./saleor/static/dashboard/images/chevron-right.svg 96 bytes {0} [built]
+ 12 hidden modules
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--5-1!node_modules/postcss-loader/lib/index.js??ref--5-2!node_modules/sass-loader/lib/loader.js??ref--5-3!saleor/static/dashboard/scss/document.scss:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/sass-loader/lib/loader.js??ref--5-3!./saleor/static/dashboard/scss/document.scss 7.13 KiB {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--5-1!node_modules/postcss-loader/lib/index.js??ref--5-2!node_modules/sass-loader/lib/loader.js??ref--5-3!saleor/static/scss/storefront.scss:
Asset Size Chunks Chunk Names
CircularStd-Bold.ce2a6c4154de87815e8971d21a987403.ttf 84.3 KiB [emitted]
CircularStd-Book.c43e9feb9ca817ae86afb47fd0ee4f94.ttf 80.9 KiB [emitted]
CircularStd-Medium.46d551dfd0caa61f1332d7c477f584c2.ttf 84.4 KiB [emitted]
GT-Pressura-Regular.3e1e2cb63cb1b0dd7ec3a9a938e652d8.ttf 132 KiB [emitted]
Larsseit.7d40b6a513dd4c1adefd10dac29bad32.ttf 137 KiB [emitted]
arrivals-kal-visuals.3e731092b6ec6778830ff2f2e6673972.png 199 KiB [emitted]
b_clothing_apparel.b62c18a10844519a2e2f007e60e46f60.png 325 KiB [emitted] [big]
b_gifts.0417afc8b592a3d2a34ea01d7eff242e.png 342 KiB [emitted] [big]
b_jewelry_accessories.f76d0136b5dd336d9bac9713bcc2bcc2.png 350 KiB [emitted] [big]
b_wedding_party.550bfd41738a4bc015e7b72479f9b128.png 412 KiB [emitted] [big]
food_beverage.a8734dc815746d69611c6fc55d6f32a2.png 168 KiB [emitted]
home_living.67fd633e1db657ad6577d56c76565ff4.jpg 102 KiB [emitted]
jewelry-accessories-oladimeji.d539ea5e1ea8aa0e0367de67a7d150f1.png 228 KiB [emitted]
moderat-bold-webfont.2cb0b082aa64d665f55c964b064676db.woff2 52.8 KiB [emitted]
moderat-bold-webfont.89eb9240f8cff3873105ee6bb4cac566.ttf 88.7 KiB [emitted]
moderat-bold-webfont.a757a12b463c765b554731b47d19f515.woff 63.5 KiB [emitted]
moderat-bold-webfont.e9546d04bb77a7525901c1b816628ff3.svg 566 KiB [emitted] [big]
moderat-bold-webfont.f780cc62da4b3e34ecbb228b512893f9.eot 63.2 KiB [emitted]
moderat-regular-webfont.19f79ff7375a0be6105e82b4e8c63ff8.woff2 52.9 KiB [emitted]
moderat-regular-webfont.5f091d05fd7338b1f07b557e536292d0.woff 63 KiB [emitted]
moderat-regular-webfont.86591867d5547c3f6ff56c8b774dd40c.eot 63 KiB [emitted]
moderat-regular-webfont.df0b5decb149bf7f8f1463fe4a84c024.ttf 93.1 KiB [emitted]
moderat-regular-webfont.fbe6c99715227f406f4abd3b5a1938c0.svg 583 KiB [emitted] [big]
soqoni-hero-one.d7f987f0437ab4be11961ac20d74f7ab.jpg 88.7 KiB [emitted]
toys_entertainment.8c9928bcbf7e1c244ccf5439301e79c1.jpg 236 KiB [emitted]
wedding_party.d1b6a7b1059e76a07744bbf7e5073182.jpg 122 KiB [emitted]
+ 1 hidden asset
Entrypoint mini-css-extract-plugin = *
[0] ./saleor/static/fonts/moderat-regular-webfont.eot 106 bytes {0} [built]
[1] ./saleor/static/fonts/moderat-bold-webfont.eot 103 bytes {0} [built]
[2] ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/sass-loader/lib/loader.js??ref--5-3!./saleor/static/scss/storefront.scss 835 KiB {0} [built]
[5] ./saleor/static/fonts/GT-Pressura-Regular.ttf 102 bytes {0} [built]
[6] ./saleor/static/fonts/gt-walsheim-web.ttf 98 bytes {0} [built]
[7] ./saleor/static/fonts/Larsseit.ttf 91 bytes {0} [built]
[8] ./saleor/static/fonts/CircularStd-Book.ttf 99 bytes {0} [built]
[9] ./saleor/static/fonts/CircularStd-Medium.ttf 101 bytes {0} [built]
[10] ./saleor/static/fonts/CircularStd-Bold.ttf 99 bytes {0} [built]
[11] ./saleor/static/fonts/moderat-regular-webfont.woff2 108 bytes {0} [built]
[12] ./saleor/static/fonts/moderat-regular-webfont.woff 107 bytes {0} [built]
[13] ./saleor/static/fonts/moderat-regular-webfont.ttf 106 bytes {0} [built]
[14] ./saleor/static/fonts/moderat-regular-webfont.svg 106 bytes {0} [built]
[15] ./saleor/static/fonts/moderat-bold-webfont.woff2 105 bytes {0} [built]
[16] ./saleor/static/fonts/moderat-bold-webfont.woff 104 bytes {0} [built]
+ 15 hidden modules
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build-assets: webpack -p
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build-assets script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/raymaun/.npm/_logs/2019-04-30T14_16_24_027Z-debug.log
```
System information
Operating system: Mac OSX
Browser: Chrome
I've just checked on my local and it worked well (npm 6.5.0 and node 10.11.0). Maybe removing node_modules, reinstalling dependencies and running build again would help?
IIRC things don't work well with latest node (version 12), so make sure you have the documentation recommended node v10 as maarcingebala mentioned.
Hi @maarcingebala @ashishnitinpatil
So, first, I run rm -rf node_modules and then made changes such that I have the following versions of Node and NPM:
Node: v10.15.3
NPM: 6.4.1
I then run npm install which gave the following output:
soqoni-web (master) ✗ npm install
> [email protected] install /Users/raymaun/Projects/soqoni-web/node_modules/jest-haste-map/node_modules/fsevents
> node install
node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/raymaun/Projects/soqoni-web/node_modules/jest-haste-map/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote
> [email protected] install /Users/raymaun/Projects/soqoni-web/node_modules/fsevents
> node install
[fsevents] Success: "/Users/raymaun/Projects/soqoni-web/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> [email protected] install /Users/raymaun/Projects/soqoni-web/node_modules/node-sass
> node scripts/install.js
Cached binary found at /Users/raymaun/.npm/node-sass/4.12.0/darwin-x64-64_binding.node
> [email protected] postinstall /Users/raymaun/Projects/soqoni-web/node_modules/jss
> node -e "console.log('\u001b[35m\u001b[1mLove JSS? You can now support us on open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/jss/donate\u001b[0m')"
Love JSS? You can now support us on open collective:
> https://opencollective.com/jss/donate
> [email protected] postinstall /Users/raymaun/Projects/soqoni-web/node_modules/node-sass
> node scripts/build.js
Binary found at /Users/raymaun/Projects/soqoni-web/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Testing binary
Binary is fine
added 3216 packages from 1342 contributors and audited 894693 packages in 72.921s
found 20 vulnerabilities (3 low, 9 moderate, 8 high)
run `npm audit fix` to fix them, or `npm audit` for details
Nothing amiss. I then npm run build-assets with the following output:
soqoni-web (master) ✗ npm run build-assets
> [email protected] build-assets /Users/raymaun/Projects/soqoni-web
> webpack -p
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
(node:57471) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Hash: 196a9a8da351db177bde
Version: webpack 4.27.1
Time: 79588ms
Built at: 04/30/2019 8:11:38 PM
Asset Size Chunks Chunk Names
CircularStd-Bold.ce2a6c4154de87815e8971d21a987403.ttf 84.3 KiB [emitted]
CircularStd-Book.c43e9feb9ca817ae86afb47fd0ee4f94.ttf 80.9 KiB [emitted]
CircularStd-Medium.46d551dfd0caa61f1332d7c477f584c2.ttf 84.4 KiB [emitted]
GT-Pressura-Regular.3e1e2cb63cb1b0dd7ec3a9a938e652d8.ttf 132 KiB [emitted]
Larsseit.7d40b6a513dd4c1adefd10dac29bad32.ttf 137 KiB [emitted]
Roboto-Bold.c0f1e4a4fdfb8048c72e86aadb2a247d.woff2 63.3 KiB [emitted]
Roboto-Bold.eed9aab5449cc9c8430d7d258108f602.woff 88.2 KiB [emitted]
Roboto-Light.3c37aa69cd77e6a53a067170fa8fe2e9.woff2 62.8 KiB [emitted]
Roboto-Light.ea36cd9a0e9eee97012a67b8a4570d7b.woff 87.6 KiB [emitted]
Roboto-Medium.1561b424aaef2f704bbd89155b3ce514.woff2 63.9 KiB [emitted]
Roboto-Medium.cf4d60bc0b1d4b2314085919a00e1724.woff 88.4 KiB [emitted]
Roboto-Regular.3cf6adf61054c328b1b0ddcd8f9ce24d.woff 87.7 KiB [emitted]
Roboto-Regular.5136cbe62a63604402f2fedb97f246f8.woff2 63.3 KiB [emitted]
Roboto-Thin.1f35e6a11d27d2e10d28946d42332dc5.woff2 61.6 KiB [emitted]
Roboto-Thin.44b78f142603eb69f593ed4002ed7a4a.woff 86.1 KiB [emitted]
align_center.261490e2a4abf6925c5e533cacef7361.svg 239 bytes [emitted]
align_justify.2eecf9cbf6e5c9260e4c366e1f2b49b1.svg 238 bytes [emitted]
align_left.ab9f0ff87e27ff7b6a58106c012daf22.svg 240 bytes [emitted]
align_right.b45aa1ea0df06c6a9506b0cd3e8527fe.svg 239 bytes [emitted]
arrivals-kal-visuals.3e731092b6ec6778830ff2f2e6673972.png 199 KiB [emitted]
b_clothing_apparel.b62c18a10844519a2e2f007e60e46f60.png 325 KiB [emitted] [big]
b_gifts.0417afc8b592a3d2a34ea01d7eff242e.png 342 KiB [emitted] [big]
b_jewelry_accessories.f76d0136b5dd336d9bac9713bcc2bcc2.png 350 KiB [emitted] [big]
b_wedding_party.550bfd41738a4bc015e7b72479f9b128.png 412 KiB [emitted] [big]
chevron-right.b90a94d3bf483b8d97e4647049ecdaa2.svg 210 bytes [emitted]
close.ec0a5fedbc923f0763a1886366f4967c.svg 266 bytes [emitted]
dashboard-next.582a4065abb3c72c0e8d.js 2.5 MiB 1 [emitted] [big] dashboard-next
dashboard.3e25b2f3439a82e7ce81.css 224 KiB 0 [emitted] dashboard
dashboard.3e25b2f3439a82e7ce81.js 532 KiB 0 [emitted] [big] dashboard
document.205b268a75f225125e32.css 2.52 KiB 2 [emitted] document
document.205b268a75f225125e32.js 1010 bytes 2 [emitted] document
done.6469e271be639f7e5f1e45ffbb16c876.svg 215 bytes [emitted]
food_beverage.a8734dc815746d69611c6fc55d6f32a2.png 168 KiB [emitted]
format_clear.9ea4294f9494325a0a198b0201443e63.svg 296 bytes [emitted]
gt-walsheim-web.a78cebccad7eac33f080875974108711.ttf 92.5 KiB [emitted]
home_living.67fd633e1db657ad6577d56c76565ff4.jpg 102 KiB [emitted]
insert_link.9523768776537a425ceaf093d2dddb00.svg 375 bytes [emitted]
insert_photo.497fe7788e4adeb99de29152704b8d32.svg 284 bytes [emitted]
jewelry-accessories-oladimeji.d539ea5e1ea8aa0e0367de67a7d150f1.png 228 KiB [emitted]
login-background.37d2649918db527e7f5c0dc49475a4ff.svg 16.3 KiB [emitted]
logo-dark.b1ba93dc28e3576f4769cab4b77dbbc7.svg 2.56 KiB [emitted]
logo-light.d493430f320751f6bffac210ced37643.svg 1.2 KiB [emitted]
moderat-bold-webfont.2cb0b082aa64d665f55c964b064676db.woff2 52.8 KiB [emitted]
moderat-bold-webfont.89eb9240f8cff3873105ee6bb4cac566.ttf 88.7 KiB [emitted]
moderat-bold-webfont.a757a12b463c765b554731b47d19f515.woff 63.5 KiB [emitted]
moderat-bold-webfont.e9546d04bb77a7525901c1b816628ff3.svg 566 KiB [emitted] [big]
moderat-bold-webfont.f780cc62da4b3e34ecbb228b512893f9.eot 63.2 KiB [emitted]
moderat-regular-webfont.19f79ff7375a0be6105e82b4e8c63ff8.woff2 52.9 KiB [emitted]
moderat-regular-webfont.5f091d05fd7338b1f07b557e536292d0.woff 63 KiB [emitted]
moderat-regular-webfont.86591867d5547c3f6ff56c8b774dd40c.eot 63 KiB [emitted]
moderat-regular-webfont.df0b5decb149bf7f8f1463fe4a84c024.ttf 93.1 KiB [emitted]
moderat-regular-webfont.fbe6c99715227f406f4abd3b5a1938c0.svg 583 KiB [emitted] [big]
not-found-404.a4d671be72e48d8ad9e8254297221171.svg 1.21 KiB [emitted]
pass-invisible.d5a74fda0ae925038d3d4a2b9cb030d3.svg 1.67 KiB [emitted]
pass-visible.d7d2a2f14d58c56691160e88464dfdb5.svg 1.24 KiB [emitted]
placeholder255x255.bb658a475f01d6538c482fd852ad782c.png 4.6 KiB [emitted]
quote.a519f24a889ca0c8830dccdd93a810b4.svg 204 bytes [emitted]
soqoni-hero-one.d7f987f0437ab4be11961ac20d74f7ab.jpg 88.7 KiB [emitted]
storefront.3392182b9c5cc950053a.css 274 KiB 3 [emitted] [big] storefront
storefront.3392182b9c5cc950053a.js 467 KiB 3 [emitted] [big] storefront
toys_entertainment.8c9928bcbf7e1c244ccf5439301e79c1.jpg 236 KiB [emitted]
wedding_party.d1b6a7b1059e76a07744bbf7e5073182.jpg 122 KiB [emitted]
what.b7ae116ae14cafe6adfb9cfa119599c5.svg 1.49 KiB [emitted]
Entrypoint dashboard [big] = dashboard.3e25b2f3439a82e7ce81.css dashboard.3e25b2f3439a82e7ce81.js
Entrypoint dashboard-next [big] = dashboard-next.582a4065abb3c72c0e8d.js
Entrypoint document = document.205b268a75f225125e32.css document.205b268a75f225125e32.js
Entrypoint storefront [big] = storefront.3392182b9c5cc950053a.css storefront.3392182b9c5cc950053a.js
[2] ./saleor/static/dashboard-next/i18n.ts 478 bytes {1} [built]
[22] ./saleor/static/dashboard-next/types/globalTypes.ts 9.9 KiB {1} [built]
[66] ./node_modules/apollo-link/lib/index.js + 4 modules 8.12 KiB {1} [built]
| 5 modules
[132] ./saleor/static/dashboard-next/configuration/index.tsx 3.95 KiB {1} [built]
[161] ./saleor/static/dashboard-next/auth/index.tsx 716 bytes {1} [built]
[397] ./saleor/static/dashboard-next/index.tsx 9.17 KiB {1} [built]
[454] ./saleor/static/dashboard-next/NotFound.tsx 476 bytes {1} [built]
[456] ./saleor/static/dashboard-next/auth/misc.ts 227 bytes {1} [built]
[884] ./node_modules/apollo-client/index.js + 24 modules 121 KiB {1} [built]
| 25 modules
[917] ./saleor/static/dashboard/scss/dashboard.scss 39 bytes {0} [built]
[972] ./saleor/static/dashboard-next/auth/AuthProvider.tsx 4.07 KiB {1} [built]
[1168] ./saleor/static/dashboard-next/auth/views/Login.tsx 761 bytes {1} [built]
[1850] ./saleor/static/dashboard/js/document.js 31 bytes {2} [built]
[1853] ./saleor/static/js/storefront.js 468 bytes {3} [built]
[1876] ./saleor/static/dashboard/js/dashboard.js + 1 modules 589 bytes {0} [built]
| ./saleor/static/dashboard/js/dashboard.js 125 bytes [built]
| + 1 hidden module
+ 1886 hidden modules
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
moderat-regular-webfont.fbe6c99715227f406f4abd3b5a1938c0.svg (583 KiB)
moderat-bold-webfont.e9546d04bb77a7525901c1b816628ff3.svg (566 KiB)
b_clothing_apparel.b62c18a10844519a2e2f007e60e46f60.png (325 KiB)
b_gifts.0417afc8b592a3d2a34ea01d7eff242e.png (342 KiB)
b_wedding_party.550bfd41738a4bc015e7b72479f9b128.png (412 KiB)
b_jewelry_accessories.f76d0136b5dd336d9bac9713bcc2bcc2.png (350 KiB)
dashboard.3e25b2f3439a82e7ce81.js (532 KiB)
dashboard-next.582a4065abb3c72c0e8d.js (2.5 MiB)
storefront.3392182b9c5cc950053a.css (274 KiB)
storefront.3392182b9c5cc950053a.js (467 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
dashboard (757 KiB)
dashboard.3e25b2f3439a82e7ce81.css
dashboard.3e25b2f3439a82e7ce81.js
dashboard-next (2.5 MiB)
dashboard-next.582a4065abb3c72c0e8d.js
storefront (741 KiB)
storefront.3392182b9c5cc950053a.css
storefront.3392182b9c5cc950053a.js
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(33,7):
TS2339: Property 'children' does not exist on type 'Pick<TypedMutationInnerProps<TData, TVariables>, Exclude<"children", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<"onError", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<...> | Exclude<...>> & Pick<...> & Pick<...>'.
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(34,7):
TS2339: Property 'onCompleted' does not exist on type 'Pick<TypedMutationInnerProps<TData, TVariables>, Exclude<"children", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<"onError", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<...> | Exclude<...>> & Pick<...> & Pick<...>'.
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(35,7):
TS2339: Property 'onError' does not exist on type 'Pick<TypedMutationInnerProps<TData, TVariables>, Exclude<"children", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<"onError", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<...> | Exclude<...>> & Pick<...> & Pick<...>'.
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(36,7):
TS2339: Property 'variables' does not exist on type 'Pick<TypedMutationInnerProps<TData, TVariables>, Exclude<"children", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<"onError", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<...> | Exclude<...>> & Pick<...> & Pick<...>'.
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/mutations.tsx(44,12):
TS2322: Type '{ children: any; mutation: any; onCompleted: any; onError: (err: any) => void; variables: any; update: MutationUpdaterFn<TData>; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<StrictTypedMutation> & Pick<Readonly<MutationProps<TData, TVariables>> & Readonly<{ children?: ReactNode; }>, Exclude<...> | ... 10 more ... | Exclude<...>> & Pick<...> & Pick<...>'.
Property 'mutation' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<StrictTypedMutation> & Pick<Readonly<MutationProps<TData, TVariables>> & Readonly<{ children?: ReactNode; }>, Exclude<...> | ... 10 more ... | Exclude<...>> & Pick<...> & Pick<...>'.
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx(73,19):
TS2339: Property 'children' does not exist on type 'Pick<TypedQueryInnerProps<TData, TVariables>, Exclude<"require", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<"children", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<...> | Exclude<...> | Exclude<...>> & Pick<...> & Pick<...>'.
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx(76,19):
TS2339: Property 'variables' does not exist on type 'Pick<TypedQueryInnerProps<TData, TVariables>, Exclude<"require", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<"children", IsExactlyAny<TVariables> extends true ? "variables" : never> | Exclude<...> | Exclude<...> | Exclude<...>> & Pick<...> & Pick<...>'.
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx
ERROR in /Users/raymaun/Projects/soqoni-web/saleor/static/dashboard-next/queries.tsx(83,20):
TS2322: Type '{ children: (queryData: any) => any; fetchPolicy: string; query: any; variables: any; skip: boolean; context: { useBatching: boolean; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<StrictTypedQuery> & Pick<Readonly<QueryProps<TData, TVariables>> & Readonly<{ children?: ReactNode; }>, Exclude<"client", "query" | (IsExactlyAny<...> extends true ? "variables" : never)> | ... 12 more ... | Exclude<...>> & Pick<...> & Pick<...>'.
Property 'fetchPolicy' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<StrictTypedQuery> & Pick<Readonly<QueryProps<TData, TVariables>> & Readonly<{ children?: ReactNode; }>, Exclude<"client", "query" | (IsExactlyAny<...> extends true ? "variables" : never)> | ... 12 more ... | Exclude<...>> & Pick<...> & Pick<...>'.
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--5-1!node_modules/postcss-loader/lib/index.js??ref--5-2!node_modules/sass-loader/lib/loader.js??ref--5-3!saleor/static/dashboard/scss/dashboard.scss:
Asset Size Chunks Chunk Names
Roboto-Bold.c0f1e4a4fdfb8048c72e86aadb2a247d.woff2 63.3 KiB [emitted]
Roboto-Bold.eed9aab5449cc9c8430d7d258108f602.woff 88.2 KiB [emitted]
Roboto-Light.3c37aa69cd77e6a53a067170fa8fe2e9.woff2 62.8 KiB [emitted]
Roboto-Light.ea36cd9a0e9eee97012a67b8a4570d7b.woff 87.6 KiB [emitted]
Roboto-Medium.1561b424aaef2f704bbd89155b3ce514.woff2 63.9 KiB [emitted]
Roboto-Medium.cf4d60bc0b1d4b2314085919a00e1724.woff 88.4 KiB [emitted]
Roboto-Regular.3cf6adf61054c328b1b0ddcd8f9ce24d.woff 87.7 KiB [emitted]
Roboto-Regular.5136cbe62a63604402f2fedb97f246f8.woff2 63.3 KiB [emitted]
Roboto-Thin.1f35e6a11d27d2e10d28946d42332dc5.woff2 61.6 KiB [emitted]
Roboto-Thin.44b78f142603eb69f593ed4002ed7a4a.woff 86.1 KiB [emitted]
chevron-right.b90a94d3bf483b8d97e4647049ecdaa2.svg 210 bytes [emitted]
+ 1 hidden asset
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/sass-loader/lib/loader.js??ref--5-3!./saleor/static/dashboard/scss/dashboard.scss 647 KiB {0} [built]
[3] ./saleor/static/fonts/gt-walsheim-web.ttf 98 bytes {0} [built]
[14] ./saleor/static/dashboard/images/chevron-right.svg 96 bytes {0} [built]
+ 12 hidden modules
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--5-1!node_modules/postcss-loader/lib/index.js??ref--5-2!node_modules/sass-loader/lib/loader.js??ref--5-3!saleor/static/dashboard/scss/document.scss:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/sass-loader/lib/loader.js??ref--5-3!./saleor/static/dashboard/scss/document.scss 7.13 KiB {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--5-1!node_modules/postcss-loader/lib/index.js??ref--5-2!node_modules/sass-loader/lib/loader.js??ref--5-3!saleor/static/scss/storefront.scss:
Asset Size Chunks Chunk Names
CircularStd-Bold.ce2a6c4154de87815e8971d21a987403.ttf 84.3 KiB [emitted]
CircularStd-Book.c43e9feb9ca817ae86afb47fd0ee4f94.ttf 80.9 KiB [emitted]
CircularStd-Medium.46d551dfd0caa61f1332d7c477f584c2.ttf 84.4 KiB [emitted]
GT-Pressura-Regular.3e1e2cb63cb1b0dd7ec3a9a938e652d8.ttf 132 KiB [emitted]
Larsseit.7d40b6a513dd4c1adefd10dac29bad32.ttf 137 KiB [emitted]
arrivals-kal-visuals.3e731092b6ec6778830ff2f2e6673972.png 199 KiB [emitted]
b_clothing_apparel.b62c18a10844519a2e2f007e60e46f60.png 325 KiB [emitted] [big]
b_gifts.0417afc8b592a3d2a34ea01d7eff242e.png 342 KiB [emitted] [big]
b_jewelry_accessories.f76d0136b5dd336d9bac9713bcc2bcc2.png 350 KiB [emitted] [big]
b_wedding_party.550bfd41738a4bc015e7b72479f9b128.png 412 KiB [emitted] [big]
food_beverage.a8734dc815746d69611c6fc55d6f32a2.png 168 KiB [emitted]
gt-walsheim-web.a78cebccad7eac33f080875974108711.ttf 92.5 KiB [emitted]
home_living.67fd633e1db657ad6577d56c76565ff4.jpg 102 KiB [emitted]
jewelry-accessories-oladimeji.d539ea5e1ea8aa0e0367de67a7d150f1.png 228 KiB [emitted]
moderat-bold-webfont.2cb0b082aa64d665f55c964b064676db.woff2 52.8 KiB [emitted]
moderat-bold-webfont.89eb9240f8cff3873105ee6bb4cac566.ttf 88.7 KiB [emitted]
moderat-bold-webfont.a757a12b463c765b554731b47d19f515.woff 63.5 KiB [emitted]
moderat-bold-webfont.e9546d04bb77a7525901c1b816628ff3.svg 566 KiB [emitted] [big]
moderat-bold-webfont.f780cc62da4b3e34ecbb228b512893f9.eot 63.2 KiB [emitted]
moderat-regular-webfont.19f79ff7375a0be6105e82b4e8c63ff8.woff2 52.9 KiB [emitted]
moderat-regular-webfont.5f091d05fd7338b1f07b557e536292d0.woff 63 KiB [emitted]
moderat-regular-webfont.86591867d5547c3f6ff56c8b774dd40c.eot 63 KiB [emitted]
moderat-regular-webfont.df0b5decb149bf7f8f1463fe4a84c024.ttf 93.1 KiB [emitted]
moderat-regular-webfont.fbe6c99715227f406f4abd3b5a1938c0.svg 583 KiB [emitted] [big]
soqoni-hero-one.d7f987f0437ab4be11961ac20d74f7ab.jpg 88.7 KiB [emitted]
toys_entertainment.8c9928bcbf7e1c244ccf5439301e79c1.jpg 236 KiB [emitted]
wedding_party.d1b6a7b1059e76a07744bbf7e5073182.jpg 122 KiB [emitted]
Entrypoint mini-css-extract-plugin = *
[0] ./saleor/static/fonts/moderat-regular-webfont.eot 106 bytes {0} [built]
[1] ./saleor/static/fonts/moderat-bold-webfont.eot 103 bytes {0} [built]
[2] ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/sass-loader/lib/loader.js??ref--5-3!./saleor/static/scss/storefront.scss 835 KiB {0} [built]
[5] ./saleor/static/fonts/GT-Pressura-Regular.ttf 102 bytes {0} [built]
[6] ./saleor/static/fonts/gt-walsheim-web.ttf 98 bytes {0} [built]
[7] ./saleor/static/fonts/Larsseit.ttf 91 bytes {0} [built]
[8] ./saleor/static/fonts/CircularStd-Book.ttf 99 bytes {0} [built]
[9] ./saleor/static/fonts/CircularStd-Medium.ttf 101 bytes {0} [built]
[10] ./saleor/static/fonts/CircularStd-Bold.ttf 99 bytes {0} [built]
[11] ./saleor/static/fonts/moderat-regular-webfont.woff2 108 bytes {0} [built]
[12] ./saleor/static/fonts/moderat-regular-webfont.woff 107 bytes {0} [built]
[13] ./saleor/static/fonts/moderat-regular-webfont.ttf 106 bytes {0} [built]
[14] ./saleor/static/fonts/moderat-regular-webfont.svg 106 bytes {0} [built]
[15] ./saleor/static/fonts/moderat-bold-webfont.woff2 105 bytes {0} [built]
[16] ./saleor/static/fonts/moderat-bold-webfont.woff 104 bytes {0} [built]
+ 15 hidden modules
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build-assets: `webpack -p`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build-assets script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/raymaun/.npm/_logs/2019-04-30T17_11_39_315Z-debug.log
My NPM debug log file has the following content:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build-assets' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild-assets', 'build-assets', 'postbuild-assets' ]
5 info lifecycle [email protected]~prebuild-assets: [email protected]
6 info lifecycle [email protected]~build-assets: [email protected]
7 verbose lifecycle [email protected]~build-assets: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build-assets: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/raymaun/Projects/soqoni-web/node_modules/.bin:/u$
9 verbose lifecycle [email protected]~build-assets: CWD: /Users/raymaun/Projects/soqoni-web
10 silly lifecycle [email protected]~build-assets: Args: [ '-c', 'webpack -p' ]
11 silly lifecycle [email protected]~build-assets: Returned: code: 2 signal: null
12 info lifecycle [email protected]~build-assets: Failed to exec build-assets script
13 verbose stack Error: [email protected] build-assets: `webpack -p`
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/raymaun/Projects/soqoni-web
16 verbose Darwin 18.5.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build-assets"
18 verbose node v10.15.3
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] build-assets: `webpack -p`
22 error Exit status 2
23 error Failed at the [email protected] build-assets script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
Unsure what the issue really is at this point. Is it my version of Webpack?
@raybesiga can you confirm that you did not delete package-lock.json and that the file is accessible and in the current working directory (saleor's root project)?
Then, make sure the file is the latest version from saleor.
If you do have the latest version and have the file, please send the output of npm ls.
I think this issue may relate to this issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32588
Hi @NyanKiyoshi I deleted the package-lock.json file after getting the NPM error. I decided to copy the copy the package.json file in the Saleor repo and re-run npm install and npm run build-assets. Was this the wrong approach? Should i copy the original package.json and package-lock.json files and re-do the process?
It's always worth a try. But make sure you have the correct version, depending on what version of the PWA dashboard it is.
Deleting node_modules and updating the package.json and package-lock.json files worked. Thanks @NyanKiyoshi now onto the next error. Is the latest version of Saleor strictly using the PWA dashboard?
@raybesiga no, the legacy dashboard is still the default one. But it's not getting the new features anymore.
Noted @NyanKiyoshi. How do I activate the new dashboard once I get things going? Is there a documented process?
You simply go to /dashboard/next, nothing else to do. But you can replace the link going to dashboard 1.0 to the 2.0 in the header.
Thanks for sharing the link, it looks really good!
Thanks @maarcingebala
Most helpful comment
Nice! @NyanKiyoshi @maarcingebala I launched my store today despite not being able to update to the latest version due to this issue but I want you to know that I really appreciate what you do for us a community! Thank you! You can check it out here.