Gitlab CI/CD: Cannot find module: 'src/css/index.css'. Make sure this package is installedHow do I resolve “Cannot find module” error using Node.js?Find the version of an installed npm packageCannot install packages using node package manager in UbuntuThis experimental syntax requires enabling the parser plugin: 'objectRestSpread'Adding Flow type checking to Webpack, Babel & EslintReact build issue, ERROR in ./src/index.js Module build failed (from ./node_modules/babel-loader/lib/index.js):`exports is not defined` when using custom webpack config file in StroybookReactjs application showing a blank page on IE( internet explorer)Why am I not getting the exported Object when importing in another Typescript project?Code splitting increases entry bundle size when using create-react-app

Designing a time thief proof safe

Writing a letter of recommendation for a mediocre student

The 100 soldier problem

Is there a way to hide HTML source code yet keeping it effective?

What's the story to "WotC gave up on fixing Polymorph"?

What is the meaning of word 'crack' in chapter 33 of A Game of Thrones?

Performance for simple code that converts a RGB tuple to hex string

How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal reasons?

Is it true that, "just ten trading days represent 63 per cent of the returns of the past 50 years"?

Can the U.S. president make military decisions without consulting anyone?

Type_traits *_v variable template utility order fails to compile

Why weren't the Death Star plans transmitted electronically?

How do pilots align the HUD with their eyeballs?

Can an integer optimization problem be convex?

2000s Animated TV show where teenagers could physically go into a virtual world

To what extent is it worthwhile to report check fraud / refund scams?

Would Taiwan and China's dispute be solved if Taiwan gave up being the Republic of China?

How can an attacker use robots.txt?

Did Apollo carry and use WD40?

Is it really necessary to have a four hour meeting in Sprint planning?

A high quality contribution but an annoying error is present in my published article

Does the Orange League not count as an official Pokemon League, making the Alolan League Ash's first-ever win?

If the EU does not offer an extension to UK's Article 50 invocation, is the Benn Bill irrelevant?

Is it impolite to ask for an in-flight catalogue with no intention of buying?



Gitlab CI/CD: Cannot find module: 'src/css/index.css'. Make sure this package is installed


How do I resolve “Cannot find module” error using Node.js?Find the version of an installed npm packageCannot install packages using node package manager in UbuntuThis experimental syntax requires enabling the parser plugin: 'objectRestSpread'Adding Flow type checking to Webpack, Babel & EslintReact build issue, ERROR in ./src/index.js Module build failed (from ./node_modules/babel-loader/lib/index.js):`exports is not defined` when using custom webpack config file in StroybookReactjs application showing a blank page on IE( internet explorer)Why am I not getting the exported Object when importing in another Typescript project?Code splitting increases entry bundle size when using create-react-app






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm trying to build my React Webpack app on Gitlabs CI/CD.



Within my Webpack configuration I use the Sentry plugin to send sourcemaps so I am trying to build my app in the CI/CD container.



Here is my gitlab-ci.yml



image: node

stages:
- lint
- prepare

eslint:
stage: lint
script:
# Install eslint
- |
npm install eslint
eslint-plugin-react
babel-eslint
# Run eslint
- npm run lint

flow:
stage: lint
script:
# install flow
- yarn add flow-bin
- yarn run lint

sentry:
stage: prepare
script:
- npm i
environment:
name: production
only:
- master


and here is my package.json



"dependencies": 
"@babel/core": "7.1.6",
"@sentry/browser": "^4.5.1",
"@sentry/webpack-plugin": "^1.6.2",
"@svgr/webpack": "2.4.1",
"axios": "^0.18.0",
"bfj": "6.1.1",
"case-sensitive-paths-webpack-plugin": "2.1.2",
"chalk": "2.4.1",
"cors": "^2.8.5",
"cross-env": "^5.2.0",
"css-loader": "1.0.0",
"dotenv": "6.0.0",
"dotenv-expand": "4.2.0",
"express": "^4.16.4",
"express-http-proxy": "^1.5.0",
"file-loader": "2.0.0",
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
"fs-extra": "7.0.0",
"html-webpack-plugin": "4.0.0-alpha.2",
"humps": "^2.0.1",
"identity-obj-proxy": "3.0.0",
"jest": "23.6.0",
"jest-pnp-resolver": "1.0.1",
"jest-resolve": "23.6.0",
"js-cookie": "^2.2.0",
"mini-css-extract-plugin": "0.4.3",
"moment": "^2.24.0",
"normalizr": "^3.3.0",
"optimize-css-assets-webpack-plugin": "5.0.1",
"pnp-webpack-plugin": "1.1.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-preset-env": "6.3.1",
"postcss-safe-parser": "4.0.1",
"react": "^16.8.0",
"react-app-polyfill": "^0.2.0",
"react-circle": "^1.1.1",
"react-dev-utils": "^7.0.1",
"react-dom": "^16.8.0",
"react-ga": "^2.5.7",
"react-grid-system": "^4.4.1",
"react-helmet": "^5.2.0",
"react-keyboard-event-handler": "^1.4.1",
"react-media": "^1.9.2",
"react-player": "^1.8.0",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"react-slack-feedback": "^2.0.4",
"react-transition-group": "^2.5.3",
"redux": "^4.0.1",
"redux-api-middleware": "^3.0.1",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"resolve": "1.8.1",
"sass-loader": "7.1.0",
"scrollto-with-animation": "^4.5.2",
"signale": "^1.4.0",
"striptags": "^3.1.1",
"style-loader": "0.23.0",
"styled-components": "^4.1.3",
"terser-webpack-plugin": "1.1.0",
"url-loader": "1.1.1",
"webpack": "4.19.1",
"webpack-dev-server": "3.1.14",
"webpack-manifest-plugin": "2.0.4",
"workbox-webpack-plugin": "3.6.3",
,
"scripts":
"postinstall": "cross-env NODE_ENV=production npm run build && patch-package",
"start": "node server.js",
"dev": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js",
"storybook": "start-storybook -p 9001 -c .storybook",
"lint": "eslint ./src ./stories",
"flow": "flow ./src"
,
"devDependencies":
"@storybook/addon-info": "^4.1.11",
"@storybook/addon-knobs": "^4.1.6",
"@storybook/addon-notes": "^4.1.6",
"@storybook/react": "^4.1.6",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
"babel-loader": "^8.0.4",
"babel-plugin-named-asset-import": "^0.3.0",
"babel-preset-react-app": "^7.0.0",
"eslint": "5.6.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-loader": "2.1.1",
"eslint-plugin-flowtype": "^3.2.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"flow-bin": "^0.90.0",
"husky": "^1.3.1",
"patch-package": "^6.0.4",
"prettier": "^1.15.3",
"prop-types": "^15.7.2",
"redux-devtools-extension": "^2.13.7"
,


It builds fine on locally but not in the CI/CD runner.










share|improve this question
























  • I've realised this is something to do with my absolute path setup....

    – Karl Taylor
    Mar 28 at 16:48

















0















I'm trying to build my React Webpack app on Gitlabs CI/CD.



Within my Webpack configuration I use the Sentry plugin to send sourcemaps so I am trying to build my app in the CI/CD container.



Here is my gitlab-ci.yml



image: node

stages:
- lint
- prepare

eslint:
stage: lint
script:
# Install eslint
- |
npm install eslint
eslint-plugin-react
babel-eslint
# Run eslint
- npm run lint

flow:
stage: lint
script:
# install flow
- yarn add flow-bin
- yarn run lint

sentry:
stage: prepare
script:
- npm i
environment:
name: production
only:
- master


and here is my package.json



"dependencies": 
"@babel/core": "7.1.6",
"@sentry/browser": "^4.5.1",
"@sentry/webpack-plugin": "^1.6.2",
"@svgr/webpack": "2.4.1",
"axios": "^0.18.0",
"bfj": "6.1.1",
"case-sensitive-paths-webpack-plugin": "2.1.2",
"chalk": "2.4.1",
"cors": "^2.8.5",
"cross-env": "^5.2.0",
"css-loader": "1.0.0",
"dotenv": "6.0.0",
"dotenv-expand": "4.2.0",
"express": "^4.16.4",
"express-http-proxy": "^1.5.0",
"file-loader": "2.0.0",
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
"fs-extra": "7.0.0",
"html-webpack-plugin": "4.0.0-alpha.2",
"humps": "^2.0.1",
"identity-obj-proxy": "3.0.0",
"jest": "23.6.0",
"jest-pnp-resolver": "1.0.1",
"jest-resolve": "23.6.0",
"js-cookie": "^2.2.0",
"mini-css-extract-plugin": "0.4.3",
"moment": "^2.24.0",
"normalizr": "^3.3.0",
"optimize-css-assets-webpack-plugin": "5.0.1",
"pnp-webpack-plugin": "1.1.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-preset-env": "6.3.1",
"postcss-safe-parser": "4.0.1",
"react": "^16.8.0",
"react-app-polyfill": "^0.2.0",
"react-circle": "^1.1.1",
"react-dev-utils": "^7.0.1",
"react-dom": "^16.8.0",
"react-ga": "^2.5.7",
"react-grid-system": "^4.4.1",
"react-helmet": "^5.2.0",
"react-keyboard-event-handler": "^1.4.1",
"react-media": "^1.9.2",
"react-player": "^1.8.0",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"react-slack-feedback": "^2.0.4",
"react-transition-group": "^2.5.3",
"redux": "^4.0.1",
"redux-api-middleware": "^3.0.1",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"resolve": "1.8.1",
"sass-loader": "7.1.0",
"scrollto-with-animation": "^4.5.2",
"signale": "^1.4.0",
"striptags": "^3.1.1",
"style-loader": "0.23.0",
"styled-components": "^4.1.3",
"terser-webpack-plugin": "1.1.0",
"url-loader": "1.1.1",
"webpack": "4.19.1",
"webpack-dev-server": "3.1.14",
"webpack-manifest-plugin": "2.0.4",
"workbox-webpack-plugin": "3.6.3",
,
"scripts":
"postinstall": "cross-env NODE_ENV=production npm run build && patch-package",
"start": "node server.js",
"dev": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js",
"storybook": "start-storybook -p 9001 -c .storybook",
"lint": "eslint ./src ./stories",
"flow": "flow ./src"
,
"devDependencies":
"@storybook/addon-info": "^4.1.11",
"@storybook/addon-knobs": "^4.1.6",
"@storybook/addon-notes": "^4.1.6",
"@storybook/react": "^4.1.6",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
"babel-loader": "^8.0.4",
"babel-plugin-named-asset-import": "^0.3.0",
"babel-preset-react-app": "^7.0.0",
"eslint": "5.6.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-loader": "2.1.1",
"eslint-plugin-flowtype": "^3.2.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"flow-bin": "^0.90.0",
"husky": "^1.3.1",
"patch-package": "^6.0.4",
"prettier": "^1.15.3",
"prop-types": "^15.7.2",
"redux-devtools-extension": "^2.13.7"
,


It builds fine on locally but not in the CI/CD runner.










share|improve this question
























  • I've realised this is something to do with my absolute path setup....

    – Karl Taylor
    Mar 28 at 16:48













0












0








0








I'm trying to build my React Webpack app on Gitlabs CI/CD.



Within my Webpack configuration I use the Sentry plugin to send sourcemaps so I am trying to build my app in the CI/CD container.



Here is my gitlab-ci.yml



image: node

stages:
- lint
- prepare

eslint:
stage: lint
script:
# Install eslint
- |
npm install eslint
eslint-plugin-react
babel-eslint
# Run eslint
- npm run lint

flow:
stage: lint
script:
# install flow
- yarn add flow-bin
- yarn run lint

sentry:
stage: prepare
script:
- npm i
environment:
name: production
only:
- master


and here is my package.json



"dependencies": 
"@babel/core": "7.1.6",
"@sentry/browser": "^4.5.1",
"@sentry/webpack-plugin": "^1.6.2",
"@svgr/webpack": "2.4.1",
"axios": "^0.18.0",
"bfj": "6.1.1",
"case-sensitive-paths-webpack-plugin": "2.1.2",
"chalk": "2.4.1",
"cors": "^2.8.5",
"cross-env": "^5.2.0",
"css-loader": "1.0.0",
"dotenv": "6.0.0",
"dotenv-expand": "4.2.0",
"express": "^4.16.4",
"express-http-proxy": "^1.5.0",
"file-loader": "2.0.0",
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
"fs-extra": "7.0.0",
"html-webpack-plugin": "4.0.0-alpha.2",
"humps": "^2.0.1",
"identity-obj-proxy": "3.0.0",
"jest": "23.6.0",
"jest-pnp-resolver": "1.0.1",
"jest-resolve": "23.6.0",
"js-cookie": "^2.2.0",
"mini-css-extract-plugin": "0.4.3",
"moment": "^2.24.0",
"normalizr": "^3.3.0",
"optimize-css-assets-webpack-plugin": "5.0.1",
"pnp-webpack-plugin": "1.1.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-preset-env": "6.3.1",
"postcss-safe-parser": "4.0.1",
"react": "^16.8.0",
"react-app-polyfill": "^0.2.0",
"react-circle": "^1.1.1",
"react-dev-utils": "^7.0.1",
"react-dom": "^16.8.0",
"react-ga": "^2.5.7",
"react-grid-system": "^4.4.1",
"react-helmet": "^5.2.0",
"react-keyboard-event-handler": "^1.4.1",
"react-media": "^1.9.2",
"react-player": "^1.8.0",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"react-slack-feedback": "^2.0.4",
"react-transition-group": "^2.5.3",
"redux": "^4.0.1",
"redux-api-middleware": "^3.0.1",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"resolve": "1.8.1",
"sass-loader": "7.1.0",
"scrollto-with-animation": "^4.5.2",
"signale": "^1.4.0",
"striptags": "^3.1.1",
"style-loader": "0.23.0",
"styled-components": "^4.1.3",
"terser-webpack-plugin": "1.1.0",
"url-loader": "1.1.1",
"webpack": "4.19.1",
"webpack-dev-server": "3.1.14",
"webpack-manifest-plugin": "2.0.4",
"workbox-webpack-plugin": "3.6.3",
,
"scripts":
"postinstall": "cross-env NODE_ENV=production npm run build && patch-package",
"start": "node server.js",
"dev": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js",
"storybook": "start-storybook -p 9001 -c .storybook",
"lint": "eslint ./src ./stories",
"flow": "flow ./src"
,
"devDependencies":
"@storybook/addon-info": "^4.1.11",
"@storybook/addon-knobs": "^4.1.6",
"@storybook/addon-notes": "^4.1.6",
"@storybook/react": "^4.1.6",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
"babel-loader": "^8.0.4",
"babel-plugin-named-asset-import": "^0.3.0",
"babel-preset-react-app": "^7.0.0",
"eslint": "5.6.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-loader": "2.1.1",
"eslint-plugin-flowtype": "^3.2.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"flow-bin": "^0.90.0",
"husky": "^1.3.1",
"patch-package": "^6.0.4",
"prettier": "^1.15.3",
"prop-types": "^15.7.2",
"redux-devtools-extension": "^2.13.7"
,


It builds fine on locally but not in the CI/CD runner.










share|improve this question














I'm trying to build my React Webpack app on Gitlabs CI/CD.



Within my Webpack configuration I use the Sentry plugin to send sourcemaps so I am trying to build my app in the CI/CD container.



Here is my gitlab-ci.yml



image: node

stages:
- lint
- prepare

eslint:
stage: lint
script:
# Install eslint
- |
npm install eslint
eslint-plugin-react
babel-eslint
# Run eslint
- npm run lint

flow:
stage: lint
script:
# install flow
- yarn add flow-bin
- yarn run lint

sentry:
stage: prepare
script:
- npm i
environment:
name: production
only:
- master


and here is my package.json



"dependencies": 
"@babel/core": "7.1.6",
"@sentry/browser": "^4.5.1",
"@sentry/webpack-plugin": "^1.6.2",
"@svgr/webpack": "2.4.1",
"axios": "^0.18.0",
"bfj": "6.1.1",
"case-sensitive-paths-webpack-plugin": "2.1.2",
"chalk": "2.4.1",
"cors": "^2.8.5",
"cross-env": "^5.2.0",
"css-loader": "1.0.0",
"dotenv": "6.0.0",
"dotenv-expand": "4.2.0",
"express": "^4.16.4",
"express-http-proxy": "^1.5.0",
"file-loader": "2.0.0",
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
"fs-extra": "7.0.0",
"html-webpack-plugin": "4.0.0-alpha.2",
"humps": "^2.0.1",
"identity-obj-proxy": "3.0.0",
"jest": "23.6.0",
"jest-pnp-resolver": "1.0.1",
"jest-resolve": "23.6.0",
"js-cookie": "^2.2.0",
"mini-css-extract-plugin": "0.4.3",
"moment": "^2.24.0",
"normalizr": "^3.3.0",
"optimize-css-assets-webpack-plugin": "5.0.1",
"pnp-webpack-plugin": "1.1.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-preset-env": "6.3.1",
"postcss-safe-parser": "4.0.1",
"react": "^16.8.0",
"react-app-polyfill": "^0.2.0",
"react-circle": "^1.1.1",
"react-dev-utils": "^7.0.1",
"react-dom": "^16.8.0",
"react-ga": "^2.5.7",
"react-grid-system": "^4.4.1",
"react-helmet": "^5.2.0",
"react-keyboard-event-handler": "^1.4.1",
"react-media": "^1.9.2",
"react-player": "^1.8.0",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"react-slack-feedback": "^2.0.4",
"react-transition-group": "^2.5.3",
"redux": "^4.0.1",
"redux-api-middleware": "^3.0.1",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"resolve": "1.8.1",
"sass-loader": "7.1.0",
"scrollto-with-animation": "^4.5.2",
"signale": "^1.4.0",
"striptags": "^3.1.1",
"style-loader": "0.23.0",
"styled-components": "^4.1.3",
"terser-webpack-plugin": "1.1.0",
"url-loader": "1.1.1",
"webpack": "4.19.1",
"webpack-dev-server": "3.1.14",
"webpack-manifest-plugin": "2.0.4",
"workbox-webpack-plugin": "3.6.3",
,
"scripts":
"postinstall": "cross-env NODE_ENV=production npm run build && patch-package",
"start": "node server.js",
"dev": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js",
"storybook": "start-storybook -p 9001 -c .storybook",
"lint": "eslint ./src ./stories",
"flow": "flow ./src"
,
"devDependencies":
"@storybook/addon-info": "^4.1.11",
"@storybook/addon-knobs": "^4.1.6",
"@storybook/addon-notes": "^4.1.6",
"@storybook/react": "^4.1.6",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
"babel-loader": "^8.0.4",
"babel-plugin-named-asset-import": "^0.3.0",
"babel-preset-react-app": "^7.0.0",
"eslint": "5.6.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-loader": "2.1.1",
"eslint-plugin-flowtype": "^3.2.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"flow-bin": "^0.90.0",
"husky": "^1.3.1",
"patch-package": "^6.0.4",
"prettier": "^1.15.3",
"prop-types": "^15.7.2",
"redux-devtools-extension": "^2.13.7"
,


It builds fine on locally but not in the CI/CD runner.







node.js webpack gitlab gitlab-ci-runner






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 16:42









Karl TaylorKarl Taylor

1,7911 gold badge16 silver badges36 bronze badges




1,7911 gold badge16 silver badges36 bronze badges















  • I've realised this is something to do with my absolute path setup....

    – Karl Taylor
    Mar 28 at 16:48

















  • I've realised this is something to do with my absolute path setup....

    – Karl Taylor
    Mar 28 at 16:48
















I've realised this is something to do with my absolute path setup....

– Karl Taylor
Mar 28 at 16:48





I've realised this is something to do with my absolute path setup....

– Karl Taylor
Mar 28 at 16:48












1 Answer
1






active

oldest

votes


















0
















In my application I had and .env file setting the NODE_ENV



After messing around for ages I had to set the NODE_ENV when I executed npm run build



"scripts": 
"postinstall": "export NODE_ENV=production NODE_PATH=. && npm run build && patch-package"






share|improve this answer



























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55402858%2fgitlab-ci-cd-cannot-find-module-src-css-index-css-make-sure-this-package-is%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0
















    In my application I had and .env file setting the NODE_ENV



    After messing around for ages I had to set the NODE_ENV when I executed npm run build



    "scripts": 
    "postinstall": "export NODE_ENV=production NODE_PATH=. && npm run build && patch-package"






    share|improve this answer





























      0
















      In my application I had and .env file setting the NODE_ENV



      After messing around for ages I had to set the NODE_ENV when I executed npm run build



      "scripts": 
      "postinstall": "export NODE_ENV=production NODE_PATH=. && npm run build && patch-package"






      share|improve this answer



























        0














        0










        0









        In my application I had and .env file setting the NODE_ENV



        After messing around for ages I had to set the NODE_ENV when I executed npm run build



        "scripts": 
        "postinstall": "export NODE_ENV=production NODE_PATH=. && npm run build && patch-package"






        share|improve this answer













        In my application I had and .env file setting the NODE_ENV



        After messing around for ages I had to set the NODE_ENV when I executed npm run build



        "scripts": 
        "postinstall": "export NODE_ENV=production NODE_PATH=. && npm run build && patch-package"







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 28 at 17:19









        Karl TaylorKarl Taylor

        1,7911 gold badge16 silver badges36 bronze badges




        1,7911 gold badge16 silver badges36 bronze badges

































            draft saved

            draft discarded















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55402858%2fgitlab-ci-cd-cannot-find-module-src-css-index-css-make-sure-this-package-is%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해