Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Failed to compile #12

Open
davidswkong opened this issue Apr 8, 2019 · 1 comment
Open

Failed to compile #12

davidswkong opened this issue Apr 8, 2019 · 1 comment

Comments

@davidswkong
Copy link

User-2:aiexperiments-drum-machine-master User$ npm start

drums@1.0.0 start /Users/User/Dropbox/aiexperiments-drum-machine-master
webpack-dev-server

「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
✖ 「wdm」: Hash: 2a1105fd242c64f7c5a8
Version: webpack 4.29.6
Time: 474ms
Built at: 04/09/2019 2:47:36 AM
Asset Size Chunks Chunk Names
./build/Main.js 347 KiB Main [emitted] Main
Entrypoint Main = ./build/Main.js
[0] multi (webpack)-dev-server/client?http://localhost:8080 app/Main 40 bytes {Main} [built]
[./node_modules/ansi-html/index.js] 4.16 KiB {Main} [built]
[./node_modules/ansi-regex/index.js] 135 bytes {Main} [built]
[./node_modules/events/events.js] 13.3 KiB {Main} [built]
[./node_modules/html-entities/index.js] 231 bytes {Main} [built]
[./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {Main} [built]
[./node_modules/punycode/punycode.js] 14.3 KiB {Main} [built]
[./node_modules/querystring-es3/index.js] 127 bytes {Main} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {Main} [built]
[./node_modules/url/url.js] 22.8 KiB {Main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 8.1 KiB {Main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.59 KiB {Main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {Main} [built]
[./node_modules/webpack/hot sync ^./log$] (webpack)/hot sync nonrecursive ^./log$ 170 bytes {Main} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 75 bytes {Main} [built]
+ 10 hidden modules

ERROR in multi (webpack)-dev-server/client?http://localhost:8080 app/Main
Module not found: Error: Can't resolve 'app/Main' in '/Users/User/Dropbox/aiexperiments-drum-machine-master'
@ multi (webpack)-dev-server/client?http://localhost:8080 app/Main Main[1]
「wdm」: Failed to compile.

@EMCP
Copy link

EMCP commented Apr 8, 2019

a LOOONG time ago I looked at this project, and hacked it back together and got it working with my own mini dataset... since then, 2 years have passed... so what I am saying is.. this will likely not work but it's the latest version that worked when I was running this 2 years back...

try this in your package.json instead

{
  "name": "drums",
  "version": "1.0.0",
  "description": "The Infinite Drum Machine",
  "main": "build/Main.js",
  "license": "CC0-1.0",
  "scripts": {
    "start": "webpack-dev-server",
    "build": "webpack"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/googlecreativelab/aiexperiments-drum-machine"
  },
  "dependencies": {
    "autoprefixer-loader": "^3.2.0",
    "domready": "^1.0.8",
    "file-loader": "^0.9.0",
    "jshint": "^2.9.1",
    "jshint-loader": "^0.8.3",
    "json-loader": "^0.5.4",
    "node-sass": "^3.4.2",
    "sass-loader": "^3.2.0",
    "style-loader": "^0.13.0",
    "tone": "^0.8.0",
    "webpack": "^1.12.14"
  },
  "devDependencies": {
    "css-loader": "^0.23.1",
    "exports-loader": "^0.6.3",
    "imports-loader": "^0.6.5",
    "perlin-simplex": "0.0.2",
    "rtree": "^1.4.2",
    "stats.js": "^0.16.0",
    "three": "^0.75.0",
    "tone": "^0.7.1",
    "tween.js": "^16.3.4",
    "webpack": "^2.1.0-beta.22",
    "webpack-dev-server": "^1.16.4"
  }
}

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