1
Jupyterノートブックの生コードを取り、HTML/Javascriptを少し変更して再構築しました。あなたがpython setup.py build
を試してみて、jupyter notebook
でjupyter実行するよりも、可能なコードに変更を加えることnpm実行ビルド:Jupyterノートブックコードでjs throwsエラー
WARNING in ./~/xterm/addons/attach/index.html
Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\attach\index.html Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)
at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock.<anonymous> (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
@ ./~/xterm/addons ^\.\/.*$
WARNING in ./~/xterm/addons/linkify/index.html
Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\linkify\index.html Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)
at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock.<anonymous> (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
@ ./~/xterm/addons ^\.\/.*$
WARNING in ./~/xterm/addons/attach/index.html
Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\attach\index.html Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)
at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock.<anonymous> (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
@ ./~/xterm/addons ^\.\/.*$
WARNING in ./~/xterm/addons/linkify/index.html
Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\linkify\index.html Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)
at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock.<anonymous> (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
@ ./~/xterm/addons ^\.\/.*$
小さな変化は何ですか?あなたはあまり行くことを与えていない。 – loganfsmyth
私はimgタグのaltフィールドを変更しようとしました。しかし、変更されていない生コードを作成しようとしても、同じエラーが発生します。 @loganfsmyth – Yogesh