Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Dokcer build error #857

Open
2 of 3 tasks
RikkaBlue opened this issue Dec 29, 2019 · 1 comment
Open
2 of 3 tasks

Dokcer build error #857

RikkaBlue opened this issue Dec 29, 2019 · 1 comment

Comments

@RikkaBlue
Copy link

RikkaBlue commented Dec 29, 2019

Type: Bug Report

  • Try to follow the update procedure described in the README and try again before opening this issue.
  • Please check the F.A.Q..
  • Please check the Troubleshooting wiki section.

Your Environment

  • Version used:
    • Version (stable release) git --no-pager tag

bb55350

  • Commit ID (development release) git --no-pager log -1
  • Environment name and version:
    • Node.js version node --version
      v12.13.1
    • npm version npm --version
      6.13.4
    • Web browser name and version
      Docker version 19.03.5, build 633a0ea
  • Operating System and version:
    Linux version 5.4.6-1.el7.elrepo.x86_64

Summary

I try to build a docker image by the docker file in the repo. But there is a error

./client/src/sass/style.scss (./node_modules/css-loader/dist/cjs.js??ref--5-1!./client/scripts/typed-css-modules-loader.js!./node_modules/postcss-loader/lib??postcss!./node_modules/sass-loader/dist/cjs.js??ref--5-4!./client/src/sass/style.scss)
TypeError: DtsCreator is not a constructor
 @ ./client/src/sass/style.scss 2:14-251
 @ ./client/src/javascript/app.tsx

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node client/scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build 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!     /root/.npm/_logs/2019-12-29T07_08_30_625Z-debug.log

which is the same error as i try run npm run built

Expected Behavior

Current Behavior

I cd to the git dir.
and docker build -t flood .

Possible Solution

Steps to Reproduce

Context

I flowed some issue , for example , I try to rm node_modlues and install node-sass`
but none if them has some effects.

@zenhaust
Copy link

Hi,
Changes in typed-css-modules.
See https://github.com/Quramy/typed-css-modules/blob/46a312618dcd6a532db13c6de07dd03ccc70e58e/src/index.ts

The solution for me:
In the file client/scripts/typed-css-modules-loader.js
change
const creator = new DtsCreator();
by
const creator = DtsCreator.hasOwnProperty('default') ? new DtsCreator.default() : new DtsCreator();

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

No branches or pull requests

2 participants