huytd / kanelm Goto Github PK
View Code? Open in Web Editor NEWKanban board built with Elm
License: BSD 2-Clause "Simplified" License
Kanban board built with Elm
License: BSD 2-Clause "Simplified" License
I fail to build the project due to some issue with webpack-cli.
> [email protected] build /Users/tias/Projects/kanelm
> webpack -p
/Users/tias/Projects/kanelm/node_modules/webpack-cli/bin/config-yargs.js:89
describe: optionsSchema.definitions.output.properties.path.description,
^
TypeError: Cannot read property 'properties' of undefined
at module.exports (/Users/tias/Projects/kanelm/node_modules/webpack-cli/bin/config-yargs.js:89:48)
at /Users/tias/Projects/kanelm/node_modules/webpack-cli/bin/webpack.js:60:27
at Object.<anonymous> (/Users/tias/Projects/kanelm/node_modules/webpack-cli/bin/webpack.js:515:3)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)```
The file main.js
uses arrow functions and fetch
, which are not supported by Safari versions older than 10:
https://caniuse.com/#feat=fetch
https://caniuse.com/#search=arrow
Even though one can update Safari, this is an issue when building kanban-app because webview uses the rendering engine shipped with macOS. Currently, kanban-app only works on macOS 10.12+ due to the above incompatibilities.
Native paste command doesn't paste anything into the input box
Seems like the new binary CLI is looking for an elm.json
file instead elm-package.json
Environment:
After npm install I had to adjust PATH with "node_modules/.bin" so that elm-package could be found.
Finally starting the SW yields:
herrmann@kruger /V/H/N/h/D/D/1/1/k/kanelm> npm start
[email protected] start /Volumes/Home+BUP/NeueHeimat/herrmann/Documents/Dropbox/1_Projekte/1_10_swdev/kanban/kanelm
webpack-dev-server
Project is running at http://localhost:8081/
webpack output is served from /
Running elm-make /Volumes/Home+BUP/NeueHeimat/herrmann/Documents/Dropbox/1_Projekte/1_10_swdev/kanban/kanelm/src/Main.elm --yes --warn --output /var/folders/y8/vkf1q8wx6k71m0q8byjv1jj00000gn/T/118328-73886-8r9vmv.ak40f.js
=================================== WARNINGS ===================================
-- unused import ---------------------------------------- ./src/EventHelpers.elm
Module Html.Attributes
is unused.
4| import Html.Attributes exposing (..)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Best to remove it. Don't save code quality for later!
=================================== WARNINGS ===================================
-- unused import ----------------------------------------------- ./src/Views.elm
Module Html.Events
is unused.
5| import Html.Events exposing (..)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Best to remove it. Don't save code quality for later!
Success! Compiled 41 modules.
Successfully generated /var/folders/y8/vkf1q8wx6k71m0q8byjv1jj00000gn/T/118328-73886-8r9vmv.ak40f.js
Hash: 5d5da37d2611d622525f
Version: webpack 3.11.0
Time: 10299ms
Asset Size Chunks Chunk Names
index.html 215 bytes [emitted]
dist.js 552 kB 0 [emitted] [big] app
[2] multi (webpack)-dev-server/client?http://localhost:8081 ./src/main.js 40 bytes {0} [built]
[3] (webpack)-dev-server/client?http://localhost:8081 7.93 kB {0} [built]
[4] ./node_modules/url/url.js 23.3 kB {0} [built]
[8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built]
[11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
[12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built]
[13] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {0} [built]
[14] (webpack)-dev-server/client/socket.js 1.08 kB {0} [built]
[16] (webpack)-dev-server/client/overlay.js 3.67 kB {0} [built]
[21] (webpack)/hot nonrecursive ^./log$ 170 bytes {0} [built]
[23] (webpack)/hot/emitter.js 77 bytes {0} [built]
[25] ./src/main.js 591 bytes {0} [built]
[26] ./src/index.html 56 bytes {0} [built]
[27] ./src/main.scss 1.14 kB {0} [built]
[32] ./src/Main.elm 209 kB {0} [built]
+ 18 hidden modules
ERROR in ./src/main.js
Module not found: Error: Can't resolve './config' in '/Volumes/Home+BUP/NeueHeimat/herrmann/Documents/Dropbox/1_Projekte/1_10_swdev/kanban/kanelm/src'
@ ./src/main.js 4:15-34
@ multi (webpack)-dev-server/client?http://localhost:8081 ./src/main.js
webpack: Failed to compile.
webpack: Compiling...
Hash: 5d5da37d2611d622525f
Version: webpack 3.11.0
Time: 20ms
Asset Size Chunks Chunk Names
index.html 215 bytes
dist.js 552 kB 0 [big] app
[2] multi (webpack)-dev-server/client?http://localhost:8081 ./src/main.js 40 bytes {0}
[3] (webpack)-dev-server/client?http://localhost:8081 7.93 kB {0}
[4] ./node_modules/url/url.js 23.3 kB {0}
[8] ./node_modules/querystring-es3/index.js 127 bytes {0}
[11] ./node_modules/strip-ansi/index.js 161 bytes {0}
[12] ./node_modules/ansi-regex/index.js 135 bytes {0}
[13] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {0} [built]
[14] (webpack)-dev-server/client/socket.js 1.08 kB {0}
[16] (webpack)-dev-server/client/overlay.js 3.67 kB {0}
[21] (webpack)/hot nonrecursive ^./log$ 170 bytes {0} [built]
[23] (webpack)/hot/emitter.js 77 bytes {0}
[25] ./src/main.js 591 bytes {0}
[26] ./src/index.html 56 bytes {0}
[27] ./src/main.scss 1.14 kB {0}
[32] ./src/Main.elm 209 kB {0}
+ 18 hidden modules
ERROR in ./src/main.js
Module not found: Error: Can't resolve './config' in '/Volumes/Home+BUP/NeueHeimat/herrmann/Documents/Dropbox/1_Projekte/1_10_swdev/kanban/kanelm/src'
@ ./src/main.js 4:15-34
@ multi (webpack)-dev-server/client?http://localhost:8081 ./src/main.js
webpack: Failed to compile.
Hi, I am learning Elm and not aware of all the tricks to run actual projects.
Would you add in the README.md how to run kanelm locally ?
I have tried to install webpack and run webpack -p
. It produces dist/dist.js
with some errors afterwards:
ERROR in ./src/main.js
Module not found: Error: Can't resolve 'elm-webpack-loader' in '/home/..../kanelm'
@ ./src/main.js 4:12-33
ERROR in ./src/main.js
Module not found: Error: Can't resolve 'file-loader' in '/home/..../kanelm'
@ ./src/main.js 1:0-23
ERROR in ./src/main.js
Module not found: Error: Can't resolve 'style-loader' in '/home/..../kanelm'
@ ./src/main.js 2:0-22
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.