iview / iview/iview-cli

Build errors and missing documentation

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
721
Forks
139
PR merge metrics
No merged PRs in 30d

Description

I've been trying to create a project using the cli tool in a Windows 10 environment and have been running into a range of issues. I'll list the ones I've noticed. Please tell me if I am doing something wrong.

1. It is not documented anywhere that you should first run `npm run init` before running `npm run dev`
2. After running `npm install` you get the error `Module not found: Error: Can't resolve 'iview-loader'` when trying to run `npm run init` so I'm guess theres missing packages in the package.json file.
3. After installing the missing packages you get this error `Module not found: Error: Can't resolve 'less-loader'` it seems like the cli tool doesnt properly generate the webpack config files for sass.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Windows 10 flow with `npm install`, `npm run init`, and `npm run dev`; then inspect `package.json` and the generated webpack configuration. Confirm that the required loaders are available, Sass projects generate a usable webpack configuration, and the documentation states that `npm run init` precedes `npm run dev`.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sass, webpack
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.