diff --git a/js/utils/getIconUrl.ts b/js/utils/getIconUrl.ts index b94de71..278b098 100644 --- a/js/utils/getIconUrl.ts +++ b/js/utils/getIconUrl.ts @@ -1,4 +1,4 @@ -import imageUrls from "../../img/*.*"; +const imageUrls = require("../../img/*.*"); // A more convenient way to fetch the url of an icon const getIconUrl = (iconName: string = "") => { diff --git a/package-lock.json b/package-lock.json index 329fe35..8df2f60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,11 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@types/node": { + "version": "10.12.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.11.tgz", + "integrity": "sha512-3iIOhNiPGTdcUNVCv9e5G7GotfvJJe2pc9w2UgDXlUwnxSZ3RgcUocIU+xYm+rTU54jIKih998QE4dMOyMN1NQ==" + }, "ansi-escapes": { "version": "1.4.0", "resolved": "http://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", diff --git a/package.json b/package.json index eb6c4b5..b86658a 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "author": "", "license": "ISC", "dependencies": { + "@types/node": "^10.12.11", "css": "^2.2.4", "interactjs": "^1.3.4", "redom": "^3.16.1",