ベスパリブ

プログラミングを主とした日記・備忘録です。ベスパ持ってないです。

pythonnetのclrのインストールと使い方

pythonnetパッケージとは、Python for .NETと呼ばれるもので、.NETのCommon Language Runtime(CLR)をPythonで扱えるようになるパッケージです。

といってもあまりよくわかってないのですが、とにかくこのpythonnetのclrモジュールを使うことで、Pythonプログラムの中でdllファイルを読み込んで、そのdllモジュールを使うことができます。

github.com

pythonnetのインストール

Installation · pythonnet/pythonnet Wiki · GitHub

Anacondaだとまたインストールの方法が違うようです。詳しくは上記の公式Wikiを見てください。

Python3.8.xだとPythonの3.8.0のバグにより、インストールに失敗します。(2020/03/23現在)

pythonnetの公式には3.8.1で修正される予定みたいなこと書いてありますが、3.8.1でも以下のようなエラーが出てしまいます。

(venv) > pip install pythonnet
    Collecting pythonnet
      Using cached pythonnet-2.4.0.tar.gz (1.8 MB)
    Building wheels for collected packages: pythonnet
      Building wheel for pythonnet (setup.py) ... error
      ERROR: Command errored out with exit status 1:
        command: 'c:\users\XXXX\workspace\clr_test\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXXX\\AppData\\Local\\Temp\\pip-install-co_4hlm1\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXXX\\AppData\\Local\\Temp\\pip-install-co_4hlm1\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\XXXX\AppData\Local\Temp\pip-wheel-j0v3wdk9'
            cwd: C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\
      Complete output (70 lines):
      running bdist_wheel
      running build
      running build_ext
      https://www.nuget.org/api/v2/ の更新を確認しています。
      NuGet.exe 4.1.0 は実行中です。
      NuGet.exe を 5.4.0 に更新しています。
      正常に更新されました。
      MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin\amd64'.
      Restoring NuGet package NUnit.3.7.1.
      Restoring NuGet package UnmanagedExports.1.2.7.
      Restoring NuGet package NUnit.ConsoleRunner.3.7.0.
      Adding package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\packages'
      Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\packages'
      Adding package 'NUnit.3.7.1' to folder 'C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\packages'
      Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\packages'
      Added package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\packages'
      Added package 'NUnit.3.7.1' to folder 'C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\packages'

      NuGet Config files used:
          C:\Users\XXXX\AppData\Roaming\NuGet\NuGet.Config
          C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config

      Feeds used:
          C:\Users\XXXX\.nuget\packages\
          https://api.nuget.org/v3/index.json
          C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\

      Installed:
          3 package(s) to packages.config projects
      Traceback (most recent call last):
        File "tools\geninterop\geninterop.py", line 24, in <module>
          from pycparser import c_ast, c_parser
      ModuleNotFoundError: No module named 'pycparser'
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\setup.py", line 623, in <module>
          setup(
        File "c:\users\XXXX\workspace\clr_test\venv\lib\site-packages\setuptools\__init__.py", line 145, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\core.py", line 148, in setup
          dist.run_commands()
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
          cmd_obj.run()
        File "C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\setup.py", line 610, in run
          return bdist_wheel.bdist_wheel.run(self)
        File "c:\users\XXXX\workspace\clr_test\venv\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
          self.run_command('build')
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
          cmd_obj.run()
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build.py", line 135, in run
          self.run_command(cmd_name)
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
          cmd_obj.run()
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 340, in run
          self.build_extensions()
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 449, in build_extensions
          self._build_extensions_serial()
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
          self.build_extension(ext)
        File "C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\setup.py", line 298, in build_extension
          subprocess.check_call([sys.executable, geninterop, interop_file])
        File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 364, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['c:\\users\\XXXX\\workspace\\clr_test\\venv\\scripts\\python.exe', 'tools\\geninterop\\geninterop.py', 'src\\runtime\\interop38.cs']' returned non-zero exit status
    1.
      ----------------------------------------
      ERROR: Failed building wheel for pythonnet
      Running setup.py clean for pythonnet
    Failed to build pythonnet
    Installing collected packages: pythonnet
        Running setup.py install for pythonnet ... error
        ERROR: Command errored out with exit status 1:
          command: 'c:\users\XXXX\workspace\clr_test\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXXX\\AppData\\Local\\Temp\\pip-install-co_4hlm1\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXXX\\AppData\\Local\\Temp\\pip-install-co_4hlm1\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\XXXX\AppData\Local\Temp\pip-record-avnq3p6k\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\XXXX\workspace\clr_test\venv\include\site\python3.8\pythonnet'
              cwd: C:\Users\XXXX\AppData\Local\Temp\pip-install-co_4hlm1\pythonnet\
        Complete output (6 lines):
        usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
            or: setup.py --help [cmd1 cmd2 ...]
            or: setup.py --help-commands
            or: setup.py cmd --help

        error: option --single-version-externally-managed not recognized
        ----------------------------------------
    ERROR: Command errored out with exit status 1: 'c:\users\XXXX\workspace\clr_test\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXXX\\AppData\\Local\\Temp\\pip-install-co_4hlm1\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXXX\\AppData\\Local\\Temp\\pip-install-co_4hlm1\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\XXXX\AppData\Local\Temp\pip-record-avnq3p6k\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\XXXX\workspace\clr_test\venv\include\site\python3.8\pythonnet' Check the logs for full command output.

python3.7以下だとインストールできます。(以下の方法はグローバルインストールするので、アンインストールしたければpy -3.7 -m pip uninstall pythonnetをすること)

(venv) PS C:\Users\XXXX\workspace\clr_test> py -3.7 -m pip install pythonnet
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
Collecting pythonnet
  Downloading https://files.pythonhosted.org/packages/65/ed/cd200e95392d7f4a74319ff9166ba8a4a6fb28a405b065297f3fdec82da9/pythonnet-2.4.0-cp37-cp37m-win_amd64.whl (70kB)
      |████████████████████████████████| 71kB 1.5MB/s 
Installing collected packages: pythonnet
Successfully installed pythonnet-2.4.0

グローバルインストールされてるので、アンインストールしたければ以下のようにアンインストールします。

# インストールの確認
PS C:\Users\XXXX\workspace\hoge> py -3.7 -m pip freeze
pythonnet==2.4.0
# アンインストール
PS C:\Users\XXXX\workspace\hoge> py -3.7 -m pip uninstall pythonnet
Uninstalling pythonnet-2.4.0:
  Would remove:
    c:\users\XXXX\appdata\local\programs\python\python37\lib\site-packages\clr.pyd
    c:\users\XXXX\appdata\local\programs\python\python37\lib\site-packages\python.runtime.dll
    c:\users\XXXX\appdata\local\programs\python\python37\lib\site-packages\pythonnet-2.4.0.dist-info\*
Proceed (y/n)? y
  Successfully uninstalled pythonnet-2.4.0
# 再度確認
PS C:\Users\XXXX\workspace\hoge> py -3.7 -m pip freeze
PS C:\Users\XXXX\workspace\hoge>

clrモジュールの使い方

さて、pythonnetがインストールされていれば、clrモジュールを使うことができます。

>>> import clr
>>> dir(clr)
['AddReference', 'FindAssembly', 'GetClrType', 'ListAssemblies', 'Microsoft', 'Python', 'System', '_AtExit', '__class__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '__version__', '_extras', 'clrModule', 'clrmethod', 'clrproperty', 'e__NativeCall', 'getPreload', 'setPreload']

いろんなサイトを巡回してみると、AddReferenceToFileAndPathを使ってるサイトがありますが、AddReferenceでOK。

import clr
clr.AddReference(r"...\Redist\SolidWorks.Interop.swconst.dll")
from SolidWorks.Interop import swconst
    
print(swconst.swDisplayStateOpts_e.swAllDisplayState)
# 2

stackoverflow.com

clr違い

>>> import clr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'clr'

上記のエラーを見て、ついpip install clrをしてしまうと、違うclrモジュールをインストールしてしまうので注意が必要です。

pypi.org

(venv) PS C:\Users\XXXX\workspace\clr_test> pip install clr
Collecting clr
  Using cached clr-1.0.3-py2.py3-none-any.whl (4.4 kB)
Installing collected packages: clr
Successfully installed clr-1.0.3
(venv) PS C:\Users\XXXX\workspace\clr_test> py
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
>>> dir(clr)
['StyleBuilder', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__module__', '__name__', '__package__', '__path__', '__spec__', '_styles', 'black', 'blue', 'bold', 'cyan', 'dim', 'green', 'hidden', 'inverse', 'italic', 'key', 'light_black', 'light_blue', 'light_cyan', 'light_green', 'light_magenta', 'light_red', 'light_white', 'light_yellow', 'magenta', 'on_black', 'on_blue', 'on_cyan', 'on_green', 'on_light_black', 'on_light_blue', 'on_light_cyan', 'on_light_green', 'on_light_magenta', 'on_light_red', 'on_light_white', 'on_light_yellow', 'on_magenta', 'on_red', 'on_white', 'on_yellow', 'red', 'strikethrough', 'style_builder', 'sys', 'underline', 'value', 'white', 'yellow']

参考

`npm run tsc --init` でエラーが起きる原因

package.jsonのscriptsセクションが以下のようになっているとします。

  "scripts": {
    "tsc": "tsc"
  },

これで、シェル等で

> npm run tsc

とコマンドを実行すると実際には、

> ./node_modules/.bin/tsc

が実行されます。

このように、scriptsセクションでは、./node_modules/.bin/hogeと打つのがめんどうなコマンドをnpm run hogeで実行してくれるシュートカットを登録できます。

ということなので、npm run tsc --initとオプション引数を渡してコマンドを実行できそうですが、これをするとエラーが起きます。残念。

PS C:\Users\XXXX\workspace\myapp\myapp> npm run tsc --init

> myapp@1.0.0 tsc C:\Users\XXXX\workspace\myapp\myapp
> tsc

error TS18003: No inputs were found in config file 'C:/Users/XXXX/workspace/myapp/myapp/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.


Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! myapp@1.0.0 tsc: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the myapp@1.0.0 tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\XXXX\AppData\Roaming\npm-cache\_logs\2020-03-19T02_15_16_995Z-debug.log

コマンド引数を受け付けてくれないんですね。

しょうがないので、この場合のとりうる手段としては、

  • 【方法1】: 直接./node_modules/.bin/tsc --initとやる
  • 【方法2】: scriptsセクションにまんまのコマンドを追加する

のどちらかしかなさそうです。

方法1

> ./node_modules/.bin/tsc --init

方法2

  "scripts": {
    "tsc": "tsc",
    "tsc--init": "tsc --init"
  },
> npm run tsc--init 

久しぶりに npm run build したらエラー出るのが解せない

久しぶりにプロジェクトを開いてとりあえずビルドしてみたらエラーが出てきてくまった。以下、エラー内容です。

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(295,22)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(301,23)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(306,18)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(324,20)
      TS7006: Parameter 'source' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(334,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(335,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(337,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(337,27)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(337,65)
      TS7006: Parameter 's' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(341,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(342,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(343,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(344,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(345,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(355,62)
      TS7006: Parameter 'aSource' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(380,11)
      TS8024: JSDoc '@param' tag has name 'SourceMapGenerator', but there is no parameter with that name.     

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(382,11)
      TS8024: JSDoc '@param' tag has name 'String', but there is no parameter with that name.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(387,44)
      TS7006: Parameter 'aSourceMap' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(387,56)
      TS7006: Parameter 'aSourceMapURL' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(397,65)
      TS7006: Parameter 's' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(407,9)
      TS7005: Variable 'destGeneratedMappings' implicitly has an 'any[]' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(408,9)
      TS7005: Variable 'destOriginalMappings' implicitly has an 'any[]' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(454,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(455,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(456,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(456,3)
      TS7008: Member 'source' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(457,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(457,3)
      TS7008: Member 'originalLine' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(458,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(458,3)
      TS7008: Member 'originalColumn' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(459,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(459,3)
      TS7008: Member 'name' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(468,44)
      TS7006: Parameter 'aStr' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(468,50)
      TS7006: Parameter 'aSourceRoot' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(502,20)
      TS2339: Property '_charIsMappingSeparator' does not exist on type 'BasicSourceMapConsumer'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(508,19)
      TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(515,26)
      TS2339: Property 'value' does not exist on type '{}'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(516,26)
      TS2339: Property 'rest' does not exist on type '{}'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(528,11)
      TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(576,42)
      TS7006: Parameter 'aNeedle' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(576,51)
      TS7006: Parameter 'aMappings' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(576,62)
      TS7006: Parameter 'aLineName' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(577,42)
      TS7006: Parameter 'aColumnName' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(577,55)
      TS7006: Parameter 'aComparator' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(577,68)
      TS7006: Parameter 'aBias' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(601,38)
      TS2551: Property '_generatedMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__generatedMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(602,26)
      TS2551: Property '_generatedMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__generatedMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(608,28)
      TS2551: Property '_generatedMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__generatedMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(609,32)
      TS2551: Property '_generatedMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__generatedMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(647,50)
      TS7006: Parameter 'aArgs' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(649,27)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(650,29)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(655,12)
      TS2551: Property '_generatedMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__generatedMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(663,26)
      TS2551: Property '_generatedMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__generatedMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(702,43)
      TS7006: Parameter 'sc' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(711,47)
      TS7006: Parameter 'aSource' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(711,56)
      TS7006: Parameter 'nullOnMissing' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(781,51)
      TS7006: Parameter 'aArgs' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(782,23)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(794,26)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(795,28)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(800,12)
      TS2551: Property '_originalMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__originalMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(808,26)
      TS2551: Property '_originalMappings' does not exist on type 'BasicSourceMapConsumer'. Did you mean '__originalMappings'?

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(877,35)
      TS7006: Parameter 'aSourceMap' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(877,47)
      TS7006: Parameter 'aSourceMapURL' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(883,22)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(884,23)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(886,18)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(890,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(891,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(897,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(897,43)
      TS7006: Parameter 's' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(903,23)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(904,27)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(905,29)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(920,44)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(968,57)
      TS7006: Parameter 'aArgs' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(970,27)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(971,29)
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(976,37)
      TS2554: Expected 4 arguments, but got 3.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(977,16)
      TS7006: Parameter 'needle' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(977,24)
      TS7006: Parameter 'section' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1014,43)        
      TS7006: Parameter 's' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1025,54)        
      TS7006: Parameter 'aSource' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1025,63)        
      TS7006: Parameter 'nullOnMissing' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1061,58)        
      TS7006: Parameter 'aArgs' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1067,50)        
      TS2555: Expected at least 3 arguments, but got 2.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1096,51)        
      TS7006: Parameter 'aStr' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1096,57)        
      TS7006: Parameter 'aSourceRoot' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1097,5)
      TS7008: Member '__generatedMappings' implicitly has an 'any[]' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1098,5)
      TS7008: Member '__originalMappings' implicitly has an 'any[]' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1106,82)        
      TS2339: Property '_sourceMapURL' does not exist on type 'IndexedSourceMapConsumer'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1107,23)        
      TS2554: Expected 2 arguments, but got 1.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-map-consumer.js(1113,23)        
      TS2554: Expected 2 arguments, but got 1.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(24,10)
      TS7023: 'recursiveSearch' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(24,26)
      TS7006: Parameter 'aLow' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(24,32)
      TS7006: Parameter 'aHigh' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(24,39)
      TS7006: Parameter 'aNeedle' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(24,48)
      TS7006: Parameter 'aHaystack' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(24,59)
      TS7006: Parameter 'aCompare' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(24,69)
      TS7006: Parameter 'aBias' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(89,34)
      TS7006: Parameter 'aNeedle' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(89,43)
      TS7006: Parameter 'aHaystack' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(89,54)
      TS7006: Parameter 'aCompare' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\binary-search.js(89,64)
      TS7006: Parameter 'aBias' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\quick-sort.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\quick-sort.js(21,12)
      TS2314: Generic type 'Array<T>' requires 1 type argument(s).

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\quick-sort.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\quick-sort.js(49,12)
      TS2314: Generic type 'Array<T>' requires 1 type argument(s).

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\quick-sort.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\quick-sort.js(107,12)
      TS2314: Generic type 'Array<T>' requires 1 type argument(s).

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(35,21)
      TS7006: Parameter 'aLine' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(35,28)
      TS7006: Parameter 'aColumn' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(35,37)
      TS7006: Parameter 'aSource' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(35,46)
      TS7006: Parameter 'aChunks' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(35,55)
      TS7006: Parameter 'aName' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(36,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(36,3)
      TS7008: Member 'children' implicitly has an 'any[]' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(36,3)
      TS7022: 'children' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(37,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(38,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(39,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(40,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(41,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(42,3)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(43,24)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(55,47)
      TS7006: Parameter 'aGeneratedCode' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(55,63)
      TS7006: Parameter 'aSourceMapConsumer' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(55,83)
      TS7006: Parameter 'aRelativePath' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(58,16)
      TS2554: Expected 5 arguments, but got 0.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(84,9)
      TS7034: Variable 'lastMapping' implicitly has type 'any' in some locations where its type cannot be determined.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(86,46)
      TS7006: Parameter 'mapping' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(87,11)
      TS7005: Variable 'lastMapping' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(92,30)
      TS7005: Variable 'lastMapping' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(106,30)
      TS7005: Variable 'lastMapping' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(138,50)
      TS7006: Parameter 'sourceFile' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(150,33)
      TS7006: Parameter 'mapping' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(150,42)
      TS7006: Parameter 'code' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(172,52)
      TS7006: Parameter 'aChunk' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(175,7)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(197,60)
      TS7006: Parameter 'aChunk' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(221,54)
      TS7006: Parameter 'aFn' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(245,54)
      TS7006: Parameter 'aSep' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(268,70)
      TS7006: Parameter 'aPattern' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(268,80)
      TS7006: Parameter 'aReplacement' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(290,40)
      TS7006: Parameter 'aSourceFile' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(290,53)
      TS7006: Parameter 'aSourceContent' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(291,5)
      TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(301,42)
      TS7006: Parameter 'aFn' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(309,21)
      TS2403: Subsequent variable declarations must have the same type.  Variable 'len' must be of type 'any', but here has type 'number'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(310,43)
      TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index 
type '{}'.
  No index signature with a parameter of type 'string' was found on type '{}'.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(320,23)
      TS7006: Parameter 'chunk' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(330,88)
      TS7006: Parameter 'aArgs' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(338,7)
      TS7034: Variable 'lastOriginalSource' implicitly has type 'any' in some locations where its type cannot 
be determined.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(339,7)
      TS7034: Variable 'lastOriginalLine' implicitly has type 'any' in some locations where its type cannot be determined.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(340,7)
      TS7034: Variable 'lastOriginalColumn' implicitly has type 'any' in some locations where its type cannot 
be determined.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(341,7)
      TS7034: Variable 'lastOriginalName' implicitly has type 'any' in some locations where its type cannot be determined.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(342,23)
      TS7006: Parameter 'chunk' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(342,30)
      TS7006: Parameter 'original' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(347,10)
      TS7005: Variable 'lastOriginalSource' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(348,13)
      TS7005: Variable 'lastOriginalLine' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(349,13)
      TS7005: Variable 'lastOriginalColumn' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(350,13)
      TS7005: Variable 'lastOriginalName' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(406,37)
      TS7006: Parameter 'sourceFile' implicitly has an 'any' type.

ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js
[tsl] ERROR in C:\Users\XXXX\Desktop\myspace\workspace\MyProject\MyProject\node_modules\@types\webpack-sources\node_modules\source-map\lib\source-node.js(406,49)
      TS7006: Parameter 'sourceContent' implicitly has an 'any' type.

自分のコードじゃなくて、node_modules内のソースでエラが起きてるのが解せない。

tsconfig.jsonのcheckJsをコメントアウトしたら直りました。

{
    "compileOnSave": true,
    "compilerOptions": {
      /* Basic Options */
      // "incremental": true,                   /* Enable incremental compilation */
      "target": "ES5",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
      "module": "es2015",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
      // "lib": [],                             /* Specify library files to be included in the compilation. */
      "allowJs": true,                       /* Allow javascript files to be compiled. */
      // "checkJs": true,                       /* Report errors in .js files. */
     ...

以前はこんなエラー出てなかった気がするし、node_modules内のコードでcheckJsが効いてるのが謎。何か設定をミスってるのかな。

とりあえずビルドは通ったので、これで良しとします。

Error: Cannot find module 'babel-core'エラーの修正で困った

以下のようなエラーメッセージが表示されてくまった(´・_・`)

$ npm run build-test

> solve-later-again@1.0.0 build-test C:\Users\USER\workspace\solve-later-again\solve-later-again
> webpack-cli -w --mode=development


webpack is watching the files…

Hash: b5aa167f0XXXXXXf2170
Version: webpack 4.41.5
Time: 59ms
Built at: 2020-01-07 6:57:02 AM
     Asset      Size  Chunks             Chunk Names
content.js  4.77 KiB    main  [emitted]  main
Entrypoint main = content.js
[./src/content.js] 3.32 KiB {main} [not cacheable] [built] [failed] [1 error]

ERROR in ./src/content.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-core'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object.<anonymous> (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\babel-loader\lib\index.js:3:13)
    at Module._compile (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at loadLoader (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\loader-runner\lib\loadLoader.js:18:17)
    at iteratePitchingLoaders (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
    at runLoaders (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\loader-runner\lib\LoaderRunner.js:365:2)
    at NormalModule.doBuild (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\NormalModule.js:295:3)
    at NormalModule.build (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\NormalModule.js:446:15)
    at Compilation.buildModule (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\Compilation.js:739:10)
    at moduleFactory.create (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\Compilation.js:1111:12)
    at factory (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\NormalModuleFactory.js:409:6)
    at hooks.afterResolve.callAsync (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\NormalModuleFactory.js:155:13)
    at AsyncSeriesWaterfallHook.eval [as callAsync] (eval at create (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1) 
    at AsyncSeriesWaterfallHook.lazyCompileHook (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\tapable\lib\Hook.js:154:20)
    at resolver (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\NormalModuleFactory.js:138:29)
    at process.nextTick (C:\Users\USER\workspace\solve-later-again\solve-later-again\node_modules\webpack\lib\NormalModuleFactory.js:346:9)
    at process._tickCallback (internal/process/next_tick.js:61:11)

エラーメッセージでググるCannot find module 'babel-core' · Issue #124 · babel/gulp-babel · GitHub というドンピシャな記事がヒットするのですが、この記事に書いてあるようにnpm install --save-dev @babel/core @babel/preset-envをしてもエラーは解消しませんでした(というか元々@babel/core と @babel/preset-env を使っててアップデートしたけどダメだった)。

しょうがないので、すべてのパッケージをアップデートしてみることにしました。

結論を言うと、babel-loaderをアップデートしたら直りました。

パッケージのアップデート方法

npmパッケージのアップデートは依存関係を調べながら更新できるnpm-check-updatesが便利らしい1ので、それを使います。

# npm-check-updatesをグローバルインストールする
$ npm install -g npm-check-updates
C:\Users\USER\AppData\Roaming\npm\npm-check-updates -> C:\Users\USER\AppData\Roaming\npm\node_modules\npm-check-updates\bin\npm-check-updates
C:\Users\USER\AppData\Roaming\npm\ncu -> C:\Users\USER\AppData\Roaming\npm\node_modules\npm-check-updates\bin\ncu
+ npm-check-updates@4.0.1
added 259 packages from 95 contributors in 7.414s

# npm-check-updatesの実行
$ ncu
Checking C:\Users\USER\workspace\solve-later-again\solve-later-again\package.json
[====================] 5/5 100%

 babel-loader  ^7.1.5  →  ^8.0.6

Run ncu -u to upgrade package.json

$ ncu -u
Upgrading C:\Users\USER\workspace\solve-later-again\solve-later-again\package.json
[====================] 5/5 100%

 babel-loader  ^7.1.5  →  ^8.0.6

Run npm install to install new versions.


$ npm install
npm WARN solve-later-again@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

removed 9 packages, updated 1 package and audited 6710 packages in 2.216s
found 0 vulnerabilities

このあとビルドしたら直りました(^-^≡^-^)

参考URL

Surface Go ブルースクリーン

重要

検索すると色々なサイトが出てくるが、とにかく最新のMicrosoftの公式サポートのページを見ること。

手順

Surface Go 故障 カスタマーサポート」などで検索し、チャットで問題の現状を書き込むと、該当ページに飛ばしてくれるはずです。

Surface の USB 回復ドライブの作成と使用

以下に書いてあることはやったことの要約です。公式サポートを読んで進めたほうがよいです。

  1. 正常に稼働する別のPCで、Surface の回復イメージをダウンロード
  2. 正常に稼働する別のPCで、回復メディアドライブツールを起動。USBメモリ(128GB)に回復ドライブを作成する(「システムファイルを回復ドライブにバックアップします」のチェックボックスは外すこと)。
  3. その後回復イメージをダウンロードする。ダウンロードしたファイルを開き、回復ドライブのUSBメモリにコピーする。上書きするか聞かれたら上書き保存する。
  4. 回復ドライブ(USBメモリ)をSurface Goに挿し、Surface Goを起動する。もし「Recovery Your PC/Device needs to be repaired」と表示されたら、USBメモリの回復ドライブを認識する順序を変更する必要があるので、Windowsキーを押し、UEFI画面を開く。
  5. Boot configuratin で、「USB Storage」の優先度を一番上にする。詳しくは「公式のUSB デバイスから Surface を起動する」を参照
  6. 再起動する。
  7. すると、画面が表示されるので、表示される画面に従ってリカバリする。

Office製品のアクティベーションは?

2019年12月現在、日本向けSurface GoではOfficeのアクティベーションはプロダクトキーではなく、Microsoftアカウントに紐付けられていました。

とりあえずOfficeを起動すると「アクティベーション方法」みたいなリンクを表示してくれるので、そのリンクを踏んだ先に書いてあるとおりにすれば再アクティベーションが可能なはず。リンクを踏んだ先では、「プロダクトキーでアクティベーションしないでください。Microsoftアカウントを使ってください」という旨が書いてあったので私はそうしました。

TypeScriptの開発環境構築メモ

TypeScriptのインストール

TypeScriptのインストール方法はグローバルインストールとローカルインストールの2種類あります。

グローバルインストール方法は以下です。

$ npm install -g typescript

環境を汚したくない場合はローカルインストールをします。node_modulesが作成されその中にインストールされます。こっちだとpackage.jsonpackage-lock.jsonにTypeScript情報が追記されて、移植性が高いのでおすすめ。

$ npm install --save typescript
# または
$ npm install --save-dev typescript

--saveと--save-devの違いはnpmの--save, --save-dev, --save-optionalの違い - how to code something を参照。今回私はChrome拡張を作るつもりなので--save-devでインストールします。

ローカルインストールの場合、tscコマンドを相対パスで指定する必要があります。毎回それだと面倒くさいので、package.json(package-lock.jsonではない)のscriptsフィールドにショートカットを記述します。

{
  "name": "sample",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "tsc": "tsc"
  },
  ...
}

こうすることで、npm runコマンドでローカルインストールしたnode_modules内のtscを実行できるようになります。

$ tsc  # グローバルインストールの場合
$ npm run tsc  # ローカルインストールの場合

参考URL

tsconfig.jsonの作成

次にtsconfig.jsonの雛形を作成します。これはTypeScriptからJavaScriptにトランスパイルする際の設定ファイルです。

# グローバルインストールの場合
$ tsc --init        

# ローカルインストールの場合
$ ./node_modules/.bin/tsc --init

# npm run tsc はオプション引数を渡すことができないので、以下だとエラーが発生する
$ npm run tsc --init  

tsconfig.jsonの代表的なプロパティは以下のような感じです。

compilerOptions.target

生成するJavaScriptECMAScriptバージョン。

compilerOptions.module

モジュールの形式。

compilerOptions.strict

厳密な型変換をするかどうか(暗黙的な型変換を許さないかどうか)。TrueでOK

compilerOptions.esModuleInterop

CommonJS形式で書かれた外部ライブラリのモジュールを妥当に扱えるようにするらしいです。よくわからないからそのままで。

compilerOptions.outDir

tscをしてコンパイルしたとき、出力ファイルはtsconfig.jsと同じ場所に出力されます。別フォルダに出力したいときはこのプロパティで指定します。

dstフォルダに出力したいときは以下のようにします。

{
  "compilerOptions": {
    "outDir": "dst",                        /* Redirect output structure to the directory. */
  ...
}

Include

tscコマンドでコンパイルするファイルをフォルダで指定します。

srcフォルダ内のファイルを対象としたいときは以下のようにします。

{
  "compilerOptions": {
  ...
  },
  "include": [
    "src/**/*"
  ]
}

allowJsとcheckJs

tscコンパイル対象にJavaScriptファイルを含めたいときには、これらの項目を設定します。既存のJavaScriptファイルをTypeScript内でimportしたいときはこの設定が必要です。

{
  "compilerOptions": {
    ...,
    "allowJs": true,
    "checkJs": true
  }
}

まとめ

tsconfig.jsonは、例えば私の場合は以下のようになりました。

{
  "compilerOptions": {
    "target": "es5",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
    "module": "commonjs",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
    "allowJs": true,                       /* Allow javascript files to be compiled. */
    "checkJs": true,
    "outDir": "dst",                        /* Redirect output structure to the directory. */
    "strict": true,                           /* Enable all strict type-checking options. */
    "esModuleInterop": true                   /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
  },
  "include": [
    "src/**/*"
  ]
}

ビルドツールのインストール

実際のアプリ開発では直接tscコマンドを打つことはなく、ビルドツールと連携して使うことが多いようです。

私の場合はwebpackを使いたいのでそれに関するものをインストールします。

webpackのインストール

webpackはTypeScriptの自動コンパイル、複数のソースコードの結合、ソースコード更新時の自動リロードなどをしてくれます。一部tscと機能が被っていますね。

$ npm install --save-dev typescript ts-loader webpack webpack-cli webpack-dev-server webpack-merge

ざっくりとですが、各モジュールについて私の理解で書いておきます。

  • typescript
    • TypeScriptファイル(.ts)をコンパイルするために必要。
  • ts-loader
    • よくわからないけど、TypeScriptと連携するために必要なwebpack用のloader。
  • webpack
    • webpackを使って.tsファイルをコンパイルするために必要。
  • webpack-cli
    • 開発中に、ファイルを保存したらコンパイルも自動でされるみたいな便利なことをするために必要。
  • webpack-dev-server
    • 開発用WEBサーバ。
  • webpack-merge
    • webpack.config.jsを、開発用と本番用にファイルを分割するために必要。

ts-loaderはnode_modules内にtypescriptがあることを前提としているので、typescriptをローカルインストールする必要があるらしいです。

webpack.config.js

webpackの設定ファイルです。設定方法は参考URLのTypeScriptチュートリアル① -環境構築編- - Qiitaが詳しいのでそちらを参照。

const path = require('path');
module.exports = {
    entry: {
        content_scripts: './src/content_scripts.ts'
    },  
    output: {
        path: path.join(__dirname,'dst'),
        filename: '[name].js'  // [name]は、entryのプロパティ名(content_scripts)
    },
    optimization: {
        minimize: true
    },
    resolve: {
        extensions:['.ts','.js']
    },
    devServer: {
        contentBase: path.join(__dirname,'dst')
    },
    module: {
        rules: [
            {
                test:/\.ts$/,
                use: {
                    loader:'ts-loader'
                }
            }
        ]
    }
}

出力フォルダの指定などがtsconfig.jsonと被ってますね。webpackを通じてコンパイルするときはwebpack.config.jsの設定でされるのできちんと設定しておきます。

webpack.config.jsを開発用と本番用にファイルを分ける

webpackで開発用/本番用の設定を分ける - Qiitaが詳しいのでそちらを参照。

例えば、開発用は出力ファイルを圧縮せずに、本番用は出力ファイルを圧縮する。といった切り替えをしたいです。このようにしたいとき、公式の推奨によるとwebpack.config.jsを以下のようにファイル分割します。

  • webpack.common.js
    • 共通設定。開発用と本番用の両方に適用したい設定を記述します。
  • webpack.dev.js
    • 開発用設定
  • webpack.prod.js
    • 本番用設定

例えば私は以下のようになりました。

webpack.common.js

const path = require('path');
module.exports = {
    entry: {  // ビルドの起点となるファイルの指定
        content_scripts: './src/content_scripts.ts'
    },
    output: {  // ビルド結果の出力場所
        path: path.join(__dirname,'dst'),
        filename: '[name].js'  // [name]は、entryのプロパティ名(content_scripts)
    },    
    resolve: {  // モジュールとして扱いたいファイルの拡張子を指定する
        extensions:['.ts','.js']
    },
    devServer: {
        // webpack-dev-serverの公開フォルダ
        contentBase: path.join(__dirname,'dst')
    },
    module: {
        rules: [
            {
                // 拡張子が.tsで終わるファイルに対して、TypeScriptコンパイラを適用する
                test:/\.ts$/,
                use: {
                    loader:'ts-loader'
                }
            }
        ]
    }
}

webpack.dev.js

// webpack-merge ver.5.0.3以降は { merge } = ... という書き方になる
const { merge } = require('webpack-merge')
const common = require('./webpack.common.js') // 汎用設定をインポート

// common設定とマージする
module.exports = merge(common, {
    mode: 'development', // 開発モード
    devtool: 'inline-source-map', // 開発用ソースマップ
    optimization: {
        minimize: false  // 出力JSファイルを圧縮しない
    }
})

webpack.prod.js

// webpack-merge ver.5.0.3以降は { merge } = ... という書き方になる
const { merge } = require('webpack-merge')
const common = require('./webpack.common.js') // 汎用設定をインポート

// common設定とマージする
module.exports = merge(common, {
    mode: 'production', // 本番モード
    optimization: {
        minimize: true  // 出力JSファイルを圧縮する
    }
})

package.jsonを編集してwebpackのコマンドを簡単に使えるようにする

package.jsonのscriptsフィールドに、以下のプロパティを追加します。

  "scripts": {
    "tsc": "tsc",
    "build": "webpack --config webpack.prod.js",
    "build-dev": "webpack-cli -w --config webpack.dev.js",
    "server": "webpack-dev-server --config webpack.dev.js"
  },

これにより、

  • npm run buildで、webpackをProduction(本番環境)モードで起動して、ビルドする
    • .tsファイルを本番用にビルドする用のコマンド
  • npm run build-devで、webpack-cliをDevelopment(開発)モードかつwatchモード(ファイルを保存すると自動ビルドされる)で起動する
    • 普段の開発中はこちらを使う
  • npm run serverで、webpack-dev-serverを開発モードで起動する
    • webpack-dev-serverは、開発用WEBサーバーを起動するコマンド。localhost:8080にアクセスできる

ができるようになりました。webpack-dev-serverはビルド処理もしてくれるため、基本的にnpm run serverだけ使っておけば問題ないらしいですが、webpack-dev-serverは、ファイルを変更したときはdstフォルダに出力ファイルは更新されず、メモリ上に保存されるようです。

私の場合はChrome拡張を作りたかったので、Chrome拡張は出力ファイルをChromeにアップロードする必要があるので、出力ファイルが更新されないと困ります。なので代わりにwebpack-cliを使い、npm run build-devを中心に使って開発を進めることになります。

参考URL

@typesのインストール

@typesは型定義ファイルで、例えばChrome拡張を作るときは@types/chromeをインストールしておかないと、chrome.runtime.onMessage.addListenerなどをコードに書いてコンパイルしたらTS2304: Cannot find name 'chrome'.みたいなコンパイルエラーが出ます。なのでプロジェクトに必要な型定義ファイルを適宜インストールする必要があります。

例えばChrome拡張の場合は、@types/chromeをインストールします。

$ npm install --save-dev @types/chrome

Reactのインストール

今回、Chrome拡張で設定画面を作りたいのですが、せっかくなので練習も兼ねてReactで作ることにしました。

$ npm install --save-dev react react-dom
$ npm install --save-dev @types/react-dom @types/react-dom

「実践TypeScript」という本にはparcelを使うと便利とありますが、私の場合はwebpackを使用していますので、今回はparcelは不要なのでインストールしません。parcelは設定ファイルなしで即React環境を構築できるのがメリットな反面、複雑な設定ができないというデメリットがあるようです。

Reactを使う場合、.tsxファイルを使いますので、これのビルドを許可するように設定ファイルを書き換えます。

tsconfig.json

  "compilerOptions": {
    "target": "ES5",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
    "module": "es2015",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
    "jsx": "react",                     /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
   ...

jsxを'react'にします。また、必須ではないですがmoduleをes2015にしました。理由は 最新版TypeScript+webpack 5の環境構築まとめ(React, Vue.js, Three.jsのサンプル付き) - ICS MEDIA の「TypeScriptの設定ファイル: tsconfig.json」の章を読んでそうしました。

webpack.common.js

    entry: {
        content_scripts: './src/content_scripts.ts',
        background: './src/background.ts',
        index: './src/index.ts',
        app:'./src/react/app.tsx'  // ★これを追加
    },
    output: {
        // モジュールバンドルを行った結果を出力する場所やファイル名の指定
        // "__dirname"はこのファイルが存在するディレクトリを表すnode.jsで定義済みの定数
        path: path.join(__dirname,'dst/js'),
        filename: '[name].js'  // [name]は、entryのプロパティ名(content_scripts)
    },
    // モジュールとして扱いたいファイルの拡張子を指定する
    // 例えば「import Foo from './foo'」という記述に対して"foo.ts"という名前のファイルをモジュールとして探す
    // デフォルトは['.js', '.json']
    resolve: {
        extensions:['.ts','.tsx', '.js']  // ★tsxを追加
    },
    devServer: {
        // webpack-dev-serverの公開フォルダ
        contentBase: path.join(__dirname,'dst')
    },
    // モジュールに適用するルールの設定(ここではローダーの設定を行う事が多い)
    module: {
        rules: [
            {
                // 拡張子が.tsで終わるファイルに対して、TypeScriptコンパイラを適用する
                test:/\.(ts|tsx)$/,  // ★tsxを追加
                use: {
                    loader:'ts-loader'
                }
            }
        ]
    }

フォルダ構成は次のようになっています(一部省略しています)。

root/
├dst/
│  ├js/
│  │  └ app.js
│  └ index.html
├src/
│  └ react/
│      └ app.tsx
├package.json
├tsconfig.json
├ webpack.common.js

ReactでDOMを構築するためのファイルはsrc/react/app.tsxです。これをnpm run build-test等でコンパイルすると、dst/js/app.jsが作成されます。index.htmldstフォルダ側に作成し、app.jsを読み込むようにします。

index.html

<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="utf-8">
    <title>ReactTest</title>
  </head>
  <body>
    <div id="app"></div>
    あああああああああああああああああああああああああああ
    <!-- Load our React component. -->
    <script src="/js/app.js"></script>
  </body>
</html>

app.tsx

import * as React from 'react';
import { render } from 'react-dom';

render(<div>Hello World!!!!!</div>, document.getElementById('app'));

コンパイル後にWebサーバーを立ち上げindex.htmlにアクセスし、「Hello World!!!!!」が表示されていたら成功です。

参考URL

index.htmlをsrcフォルダに入れたい

「index.htmlファイルがdstにあってそれを直接編集するのおかしくねぇ?srcにあるべきじゃん」と思っていて、そういう方法がないか調べました。

React & TypeScriptのプロジェクト作成 - TypeScript Deep Dive 日本語版にその方法が載っていたのでそれを踏襲します。

clean-webpack-pluginhtml-wabpack-pluginを使うので、それらをインストールします。

$ npm install --save-dev clean-webpack-plugin html-webpack-plugin

その後、webpack.common.js(webpack.config.js)を以下のように編集します(編集箇所を★でマークしています)。

const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');  // ★追加
const HtmlWebpackPlugin = require('html-webpack-plugin');  // ★追加

module.exports = {
    // モジュールバンドルを行う起点となるファイルの指定
    // 指定できる値としては、ファイル名の文字列や、それを並べた配列やオブジェクト
    // 下記はオブジェクトとして指定した例
    entry: {
        content_scripts: './src/content_scripts.ts',
        background: './src/background.ts',
        index: './src/index.ts',
        app:'./src/react/app.tsx'
    },
    // ★pluginsプロパティを追加
    plugins: [
        new CleanWebpackPlugin({
            cleanAfterEveryBuildPatterns: ['dst']
        }),
        new HtmlWebpackPlugin({
            template: 'src/templates/index.html'
        }),
    ],
    output: {
        // モジュールバンドルを行った結果を出力する場所やファイル名の指定
        // "__dirname"はこのファイルが存在するディレクトリを表すnode.jsで定義済みの定数
        path: path.join(__dirname,'dst'),  // ★出力フォルダをdstに修正
        filename: 'js/[name].js'  // ★jsファイルの出力は 'js/[name].js'に修正
    },
    // モジュールとして扱いたいファイルの拡張子を指定する
    // 例えば「import Foo from './foo'」という記述に対して"foo.ts"という名前のファイルをモジュールとして探す
    // デフォルトは['.js', '.json']
    resolve: {
        extensions:['.ts','.tsx', '.js']
    },
    devServer: {
        // webpack-dev-serverの公開フォルダ
        contentBase: path.join(__dirname,'dst')
    },
    // モジュールに適用するルールの設定(ここではローダーの設定を行う事が多い)
    module: {
        rules: [
            {
                // 拡張子が.tsで終わるファイルに対して、TypeScriptコンパイラを適用する
                test:/\.(ts|tsx)$/,
                use: {
                    loader:'ts-loader'
                }
            }
        ]
    }
}

フォルダ構成は以下のようになっています(一部省略)。

root/
├dst/
│  └js/
│     └ app.js
├src/
│  ├ react/
│  │   └ app.tsx
│  └ templates/
│        └ index.html
├package.json
├tsconfig.json
├ webpack.common.js

これでnpm run build-test等してビルドすると、src/templates/index.htmlをビルドしたものがdst/直下に作成されます。

これで、ソースファイルはsrcフォルダにまとめることができました。

その他の参考

編集履歴

日時 編集内容
2022/1/9 webpack-mergeをver.5.0.3以降の書き方に修正
2020/3/19 tsconfig.jsonの作成方法を修正
2020/1/6 React公式の参考URLを追加
2019/12/31 「index.htmlをsrcフォルダに入れたい」の項目を追加
2019/12/29 Reactのインストールの項目を追加
2019/12/15 16:00頃 @typesに関する記述を追加
2019/12/15 04:41頃 初版

gencache.EnsureModuleのメモ

gencache.EnsureModule()周りを色々調べたついでに備忘録を残します。

EnsureModule()を呼び出す理由

そもそもなんでgencache.EnsureModule()を呼び出さないといけないかというと、Dispatchする前にearly binding(事前バインディング)したいからなのです。

詳細は以下を参考にします。

Dispatch()でこれまで使用したことのないCOMオブジェクトを作成しようとすると、Pythonはオブジェクトが何を利用できるかわからないのでエラーが発生します。その場合、EnsureDispatch()を使うことで事前バインディングになるので、Pythonはオブジェクトが何を利用できるかわかるようになります。

win32.dynamic.Dispatch()というのもあり、こちらは常にlate binding(遅延バインディング)になるようです。

win32com.client.Dispatch()で動かない場合はgencache.EnsureModule()を使うことで、正しくキャッシュモジュールを生成することができます。

EnsureModule()の引数

上記の1個目のサイトを読むと、win32comの場所を調べると良さそうです。

>>> import win32com
>>> win32com.__file__ 
'C:\\Users\\XXXX\\AppData\\Local\\Continuum\\anaconda3\\envs\\projectX\\lib\\site-packages\\win32com\\__init__.py'
>>>

C:\Users\XXXX\AppData\Local\Continuum\anaconda3\envs\projectX\Lib\site-packages\win32com\client\gencache.pyがあったので、EnsureModule()の実装を見てみます。

def EnsureModule(typelibCLSID, lcid, major, minor, progressInstance = None, bValidateFile=not is_readonly, bForDemand = bForDemandDefault, bBuildHidden = 1):
    """Ensure Python support is loaded for a type library, generating if necessary.
  
  Given the IID, LCID and version information for a type library, check and if
  necessary (re)generate, then import the necessary support files. If we regenerate the file, there
  is no way to totally snuff out all instances of the old module in Python, and thus we will regenerate the file more than necessary,
  unless makepy/genpy is modified accordingly.
  
  
  Returns the Python module.  No exceptions are caught during the generate process.

  Params
  typelibCLSID -- IID of the type library.
  major -- Integer major version.
  minor -- Integer minor version
  lcid -- Integer LCID for the library.
  progressInstance -- Instance to use as progress indicator, or None to
                      use the GUI progress bar.
  bValidateFile -- Whether or not to perform cache validation or not
  bForDemand -- Should a complete generation happen now, or on demand?
  bBuildHidden -- Should hidden members/attributes etc be generated?
  """

lcidはロケールIDだとすると、gencache.EnsureModule('{D98A091D-3A0F-4C3E-B36E-61F62068D488}', 0, 1, 0)の引数は左から順に、

  • クラスID
  • ロケールID
  • メジャーバージョン番号
  • マイナーバージョン番号

ということだと思います。

また、適当にフォルダを適当に漁るとmakepy.pyを見つけることができます。

C:\Users\XXXX\AppData\Local\Continuum\anaconda3\envs\projectX\Lib\site-packages\win32com\client

のmakepy.pyの104-106行目になんか書いてあります。

       print(" >>> # Use these commands in Python code to auto generate .py support")
        print(" >>> from win32com.client import gencache")
        print(" >>> gencache.EnsureModule('%s', %s, %s, %s)" % (tlbSpec.clsid, tlbSpec.lcid, tlbSpec.major, tlbSpec.minor))

tlbSpecはおそらくキャッシュのTLB(Translation Lookaside Buffer)のことだと思います。なのでおそらく、クラスID等でアプリケーションを指定して、TLBでそのアプリケーションにメモリが割り当てられているといったことをしているのでしょう。