teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラー内容の訂正

2020/06/14 15:51

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -4,18 +4,10 @@
4
4
 
5
5
  var libm = Library('dllTest', {
6
6
  ^
7
-
8
- TypeError: Library is not a function
7
+ TypeError: Library is not defined
9
- at Object.<anonymous> (C:\Users\tsuyoshi_m\Desktop\node-ffi-napi\example\tester.js:3:12)
8
+
10
- at Module._compile (internal/modules/cjs/loader.js:1158:30)
11
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
12
- at Module.load (internal/modules/cjs/loader.js:1002:32)
13
- at Function.Module._load (internal/modules/cjs/loader.js:901:14)
14
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
15
- at internal/main/run_main_module.js:18:47
16
-
17
9
  といったエラーが出てしまいます。
18
- Libraryが未定義なのですが、例や[チュートリアル](https://github.com/node-ffi/node-ffi/wiki/Node-FFI-Tutorial)ではLibraryを定義するような書き方もしていないため困っております。
10
+ ffi-napiモジュールの中の関数と思われるのですがLibraryが未定義ということ困っておりま例や[チュートリアル](https://github.com/node-ffi/node-ffi/wiki/Node-FFI-Tutorial)ではLibraryを定義するような書き方もしていないため困っております。
19
11
  ご教授いただければ幸いです。
20
12
 
21
13
  ```javascript