Не удается найти модуль "fs"

90
10

Я не умею хорошо говорить по-английски.. но я действительно не знаю, поэтому я пишу здесь. Помогите мне, пожалуйста..

после использования библиотеки "обещание-синхронизатор", в моем проекте произошла эта ошибка...

код ошибки

WARNING in ./~/deasync/README.md
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\README.md Unexpected token (2:3)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:3)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOp (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1656:43)
at Parser.pp$3.parseExprOps (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1639:17)
at Parser.pp$3.parseMaybeConditional (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

WARNING in ./~/deasync/binding.gyp
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\binding.gyp Unexpected token (2:11)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:11)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

WARNING in ./~/deasync/build.js
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\build.js Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '#' (1:0)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp$7.getTokenFromCode (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10)
at Parser.pp$7.readToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17)
at Parser.pp$7.nextToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:515:10)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

WARNING in ./~/deasync/src/deasync.cc
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\src\deasync.cc Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '#' (1:0)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp$7.getTokenFromCode (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10)
at Parser.pp$7.readToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17)
at Parser.pp$7.nextToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:515:10)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

WARNING in ./~/deasync/bin/darwin-x64-node-0.11/deasync.node
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\bin\darwin-x64-node-0.11\deasync.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '�' (1:0)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp$7.getTokenFromCode (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10)
at Parser.pp$7.readToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17)
at Parser.pp$7.nextToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:515:10)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

// Similar thing .. I omitted it because of 30000 characters.

WARNING in ./~/deasync/bin/linux-ia32-node-0.10/deasync.node
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\bin\linux-ia32-node-0.10\deasync.node Unexpected character ' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character ' (1:0)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp$7.getTokenFromCode (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10)
at Parser.pp$7.readToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17)
at Parser.pp$7.nextToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:515:10)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

// Similar thing .. I omitted it because of 30000 characters.

WARNING in ./~/deasync/bin/linux-x64-node-0.10/deasync.node
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\bin\linux-x64-node-0.10\deasync.node Unexpected character ' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character ' (1:0)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp$7.getTokenFromCode (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10)
at Parser.pp$7.readToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17)
at Parser.pp$7.nextToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:515:10)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

// Similar thing .. I omitted it because of 30000 characters.

WARNING in ./~/deasync/bin/win32-ia32-node-0.10/deasync.node
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\bin\win32-ia32-node-0.10\deasync.node Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '�' (1:2)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp$7.getTokenFromCode (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10)
at Parser.pp$7.readToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17)
at Parser.pp$7.nextToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15)
at Parser.pp$7.next (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2413:10)
at Parser.pp$3.parseIdent (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2191:10)
at Parser.pp$3.parseExprAtom (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1774:21)
at Parser.pp$3.parseExprSubscripts (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

// Similar thing .. I omitted it because of 30000 characters.

WARNING in ./~/deasync/bin/win32-x64-node-0.11/deasync.node
Module parse failed: C:\my\work\siksin-web\node_modules\deasync\bin\win32-x64-node-0.11\deasync.node Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '�' (1:2)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp$7.getTokenFromCode (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10)
at Parser.pp$7.readToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17)
at Parser.pp$7.nextToken (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15)
at Parser.pp$7.next (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2413:10)
at Parser.pp$3.parseIdent (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2191:10)
at Parser.pp$3.parseExprAtom (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1774:21)
at Parser.pp$3.parseExprSubscripts (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/deasync ^\.\/.*$

// Similar thing .. I omitted it because of 30000 characters.

WARNING in ./~/bindings/README.md
Module parse failed: C:\my\work\siksin-web\node_modules\bindings\README.md Unexpected token (2:3)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:3)
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOp (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1656:43)
at Parser.pp$3.parseExprOp (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1658:21)
at Parser.pp$3.parseExprOps (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1639:17)
at Parser.pp$3.parseMaybeConditional (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/bindings ^\.\/.*$

ERROR in ./~/deasync/index.js
Module not found: Error: Cannot resolve module 'fs' in C:\my\work\siksin-web\node_modules\deasync
@ ./~/deasync/index.js 11:10-23

ERROR in ./~/bindings/bindings.js
Module not found: Error: Cannot resolve module 'fs' in C:\my\work\siksin-web\node_modules\bindings
@ ./~/bindings/bindings.js 6:9-22

ERROR in ./~/deasync/test.js
Module not found: Error: Cannot resolve module 'child_process' in C:\my\work\siksin-web\node_modules\deasync
@ ./~/deasync/test.js 2:9-33
Cannot find module "fs" Cannot find module "fs"
at Parser.pp$4.raise (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOp (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1656:43)
at Parser.pp$3.parseExprOp (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1658:21)
at Parser.pp$3.parseExprOps (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1639:17)
at Parser.pp$3.parseMaybeConditional (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\my\work\siksin-web\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\my\work\siksin-web\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule.<anonymous> (C:\my\work\siksin-web\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\my\work\siksin-web\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\my\work\siksin-web\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\my\work\siksin-web\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)
@ ./~/bindings ^\.\/.*$

ERROR in ./~/deasync/index.js
Module not found: Error: Cannot resolve module 'fs' in C:\my\work\siksin-web\node_modules\deasync
@ ./~/deasync/index.js 11:10-23

ERROR in ./~/bindings/bindings.js
Module not found: Error: Cannot resolve module 'fs' in C:\my\work\siksin-web\node_modules\bindings
@ ./~/bindings/bindings.js 6:9-22

ERROR in ./~/deasync/test.js
Module not found: Error: Cannot resolve module 'child_process' in C:\my\work\siksin-web\node_modules\deasync
@ ./~/deasync/test.js 2:9-33
Cannot find module "fs" Cannot find module "fs"

Я использовал "обещание-синхронизатор" для управления объектом Promise. Использование

import SyncPromise from 'promise-synchronizer';

...
SyncPromise( // Promise.. );
...

Конфигурация webpack

const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
const path = require('path');

module.exports = {
entry: [
'babel-polyfill',
path.join(__dirname, 'src/app.client.js'),
],
output: {
path: path.join(__dirname, 'public/static2/build'),
filename: 'bundle.js',
},
resolve: {
root: path.join(__dirname, 'src'),
extensions: ['', '.js', '.jsx', '.json'],
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.json$/,
loader: "json-loader"
}
],
},
// postcss() {
// return {
// defaults: [autoprefixer],
// cleaner: [autoprefixer({
// browsers: [],
// })],
// };
// },
plugin: [
new webpack.NoErrorsPlugin(),
],
};

Я бы очень признателен, если вы мне поможете. если что-то понадобится исходному коду, я напишу здесь.

хорошо провести день: D

спросил(а) 2017-05-12T13:29:00+03:00 4 года, 2 месяца назад
0
Ваш ответ
Введите минимум 50 символов
Чтобы , пожалуйста,
Выберите тему жалобы:

Другая проблема