You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\kewyn\Documents\projects\bot\node_modules\thermal-printer-encoder\package.json
at new NodeError (node:internal/errors:393:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:292:9)
at packageExportsResolve (node:internal/modules/esm/resolve:546:7)
at resolveExports (node:internal/modules/cjs/loader:529:36)
at Module._findPath (node:internal/modules/cjs/loader:569:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (C:\Users\kewyn\Documents\projects\bot\index.js:1:35) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
letThermalPrinterEncoder=require('thermal-printer-encoder');letencoder=newThermalPrinterEncoder({language: 'esc-pos',width: 48,wordWrap: true});letresult=encoder.initialize().codepage('auto').text('The quick brown fox jumps over the lazy dog').italic(true).newline().barcode('3130630574613','itf',60).encode();console.log(result);
Node.js v19.0.0
Npm 9.6.1
The text was updated successfully, but these errors were encountered:
Receiving this error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\kewyn\Documents\projects\bot\node_modules\thermal-printer-encoder\package.json
at new NodeError (node:internal/errors:393:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:292:9)
at packageExportsResolve (node:internal/modules/esm/resolve:546:7)
at resolveExports (node:internal/modules/cjs/loader:529:36)
at Module._findPath (node:internal/modules/cjs/loader:569:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (C:\Users\kewyn\Documents\projects\bot\index.js:1:35) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v19.0.0
Npm 9.6.1
The text was updated successfully, but these errors were encountered: