Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'contents' of undefined #241

Open
MengFangui opened this issue Jun 4, 2019 · 4 comments
Open

TypeError: Cannot read property 'contents' of undefined #241

MengFangui opened this issue Jun 4, 2019 · 4 comments

Comments

@MengFangui
Copy link

C:\work\zweb-doc\node_modules\docpress-base\index.js:134
if (!file.contents) return
^

TypeError: Cannot read property 'contents' of undefined
at scripts.map (C:\work\zweb-doc\node_modules\docpress-base\index.js:134:21)
at Array.map ()
at callback (C:\work\zweb-doc\node_modules\docpress-base\index.js:128:33)
at C:\work\zweb-doc\node_modules\browserify\index.js:779:13
at ConcatStream. (C:\work\zweb-doc\node_modules\concat-stream\index.js:36:43)
at ConcatStream.emit (events.js:187:15)
at finishMaybe (C:\work\zweb-doc\node_modules\concat-stream\node_modules\readable-stream\lib_stream_writable.js:475:14)
at endWritable (C:\work\zweb-doc\node_modules\concat-stream\node_modules\readable-stream\lib_stream_writable.js:485:3)
at ConcatStream.Writable.end (C:\work\zweb-doc\node_modules\concat-stream\node_modules\readable-stream\lib_stream_writable.js:455:41)
at Readable.onend (C:\work\zweb-doc\node_modules\readable-stream\lib_stream_readable.js:577:10)

@MengFangui
Copy link
Author

how to do? THANKS

@knownasilya
Copy link
Member

What does your docpress config look like and what does your markdown look like?

@MengFangui
Copy link
Author

https://github.com/limodou/vuecoms-doc
you can test this docpress.

Docpress
starting development - ^C to exit

first build

aNA livereload
aNA http://localhost:3000
aNA
Starting up...
aNA aNA
✗ css: can't find 'lib/iview/styles/iview.css'
at Object.addAsset (C:\work\vuecoms-doc-master\node_modules\docpress-base\index.js:91:11)
at list.forEach (C:\work\vuecoms-doc-master\node_modules\docpress-base\index.js:60:7)
at Array.forEach ()
at Object.sortCss (C:\work\vuecoms-doc-master\node_modules\docpress-base\index.js:55:8)
at Ware. (C:\work\vuecoms-doc-master\node_modules\wrap-fn\index.js:45:19)
at next (C:\work\vuecoms-doc-master\node_modules\ware\lib\index.js:85:20)
at C:\work\vuecoms-doc-master\node_modules\wrap-fn\index.js:121:18
at Object.reset (C:\work\vuecoms-doc-master\node_modules\docpress-base\index.js:44:3)
at Ware. (C:\work\vuecoms-doc-master\node_modules\wrap-fn\index.js:45:19)
at next (C:\work\vuecoms-doc-master\node_modules\ware\lib\index.js:85:20)

aNA aNA aNA Running aNB

but it has 'lib/iview/styles/iview.css'.

My computer's operating system is win 10

@knownasilya
Copy link
Member

Hum, works on macos. Will have to look deeper maybe with a VM..

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

No branches or pull requests

2 participants