Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New issue with my library : β”‚ node16 (from ESM) β”‚ πŸ•΅οΈ Named exports β”‚ #222

Open
edi9999 opened this issue Nov 14, 2024 · 0 comments

Comments

@edi9999
Copy link

edi9999 commented Nov 14, 2024

Hello,

I was using version 0.15.4 without any issues now, but since upgrading to 0.17.0, I get a new issue.

This seems that this is a feature added here : https://github.com/arethetypeswrong/arethetypeswrong.github.io/pull/166/files

Here's the output I get with :

$ ./node_modules/.bin/attw --pack
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   β”‚ "docxtemplater"  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ node10            β”‚ 🟒               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ node16 (from CJS) β”‚ 🟒 (CJS)         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ node16 (from ESM) β”‚ πŸ•΅οΈ Named exports β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ bundler           β”‚ 🟒               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
./node_modules/.bin/attw --pack -f json
Full JSON { "analysis": { "packageName": "docxtemplater", "packageVersion": "3.52.0", "types": { "kind": "included" }, "buildTools": { "@arethetypeswrong/cli": "^0.17.0", "webpack": "^5.96.1" }, "entrypoints": { ".": { "subpath": ".", "resolutions": { "node10": { "name": ".", "resolutionKind": "node10", "resolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.d.ts", "isJson": false, "isTypeScript": true, "trace": [ "======== Resolving module 'docxtemplater' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/docxtemplater/package.json'.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater.d.ts' does not exist.", "'package.json' does not have a 'typesVersions' field.", "'package.json' does not have a 'typings' field.", "'package.json' has 'types' field './js/docxtemplater.d.ts' that references '/node_modules/docxtemplater/js/docxtemplater.d.ts'.", "File '/node_modules/docxtemplater/js/docxtemplater.d.ts' exists - use it as a name resolution result.", "'package.json' does not have a 'peerDependencies' field.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.d.ts' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "implementationResolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.js", "isJson": false, "isTypeScript": false, "trace": [ "======== Resolving module 'docxtemplater' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript.", "Found 'package.json' at '/node_modules/docxtemplater/package.json'.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "'package.json' does not have a 'typesVersions' field.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/docxtemplater/js/docxtemplater.js', target file types: TypeScript.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.tsx' does not exist.", "Directory '/node_modules/docxtemplater/js/docxtemplater.js' does not exist, skipping all lookups in it.", "File '/node_modules/docxtemplater/index.ts' does not exist.", "File '/node_modules/docxtemplater/index.tsx' does not exist.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: JavaScript, JSON.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "File '/node_modules/docxtemplater.js' does not exist.", "File '/node_modules/docxtemplater.jsx' does not exist.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.js' exists - use it as a name resolution result.", "'package.json' does not have a 'peerDependencies' field.", "Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/docxtemplater/js/docxtemplater.js', target file types: TypeScript.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.tsx' does not exist.", "Directory '/node_modules/docxtemplater/js/docxtemplater.js' does not exist, skipping all lookups in it.", "File '/node_modules/docxtemplater/index.ts' does not exist.", "File '/node_modules/docxtemplater/index.tsx' does not exist.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.js' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "files": [ "/node_modules/typescript/lib/lib.d.ts", "/node_modules/docxtemplater/js/docxtemplater.d.ts" ], "visibleProblems": [] }, "node16-cjs": { "name": ".", "resolutionKind": "node16-cjs", "resolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.d.ts", "isJson": false, "isTypeScript": true, "trace": [ "======== Resolving module 'docxtemplater' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node16'.", "Resolving in CJS mode with conditions 'require', 'types', 'node'.", "File '/package.json' does not exist.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/docxtemplater/package.json'.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater.d.ts' does not exist.", "'package.json' does not have a 'typesVersions' field.", "'package.json' does not have a 'typings' field.", "'package.json' has 'types' field './js/docxtemplater.d.ts' that references '/node_modules/docxtemplater/js/docxtemplater.d.ts'.", "File '/node_modules/docxtemplater/js/docxtemplater.d.ts' exists - use it as a name resolution result.", "'package.json' does not have a 'peerDependencies' field.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.d.ts' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "implementationResolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.js", "isJson": false, "isTypeScript": false, "trace": [ "======== Resolving module 'docxtemplater' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node16'.", "Resolving in CJS mode with conditions 'require', 'node'.", "File '/package.json' does not exist.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript, JavaScript, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript.", "Found 'package.json' at '/node_modules/docxtemplater/package.json'.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "'package.json' does not have a 'typesVersions' field.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/docxtemplater/js/docxtemplater.js', target file types: TypeScript.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.tsx' does not exist.", "Directory '/node_modules/docxtemplater/js/docxtemplater.js' does not exist, skipping all lookups in it.", "File '/node_modules/docxtemplater/index.ts' does not exist.", "File '/node_modules/docxtemplater/index.tsx' does not exist.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "File '/node_modules/docxtemplater.js' does not exist.", "File '/node_modules/docxtemplater.jsx' does not exist.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.js' exists - use it as a name resolution result.", "'package.json' does not have a 'peerDependencies' field.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.js' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "files": [ "/node_modules/typescript/lib/lib.d.ts", "/node_modules/docxtemplater/js/docxtemplater.d.ts" ], "visibleProblems": [] }, "node16-esm": { "name": ".", "resolutionKind": "node16-esm", "resolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.d.ts", "isJson": false, "isTypeScript": true, "trace": [ "======== Resolving module 'docxtemplater' from '/index.mts'. ========", "Explicitly specified module resolution kind: 'Node16'.", "Resolving in ESM mode with conditions 'import', 'types', 'node'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "'package.json' does not have a 'typings' field.", "'package.json' has 'types' field './js/docxtemplater.d.ts' that references '/node_modules/docxtemplater/js/docxtemplater.d.ts'.", "File '/node_modules/docxtemplater/js/docxtemplater.d.ts' exists - use it as a name resolution result.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.d.ts' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "implementationResolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.js", "isJson": false, "isTypeScript": false, "trace": [ "======== Resolving module 'docxtemplater' from '/index.mts'. ========", "Explicitly specified module resolution kind: 'Node16'.", "Resolving in ESM mode with conditions 'import', 'node'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript, JavaScript, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/docxtemplater/js/docxtemplater.js', target file types: TypeScript.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.tsx' does not exist.", "Directory '/node_modules/docxtemplater/js/docxtemplater.js' does not exist, skipping all lookups in it.", "File name '/node_modules/docxtemplater/index.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/index.ts' does not exist.", "File '/node_modules/docxtemplater/index.tsx' does not exist.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.js' exists - use it as a name resolution result.", "Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/docxtemplater/js/docxtemplater.js', target file types: TypeScript.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.tsx' does not exist.", "Directory '/node_modules/docxtemplater/js/docxtemplater.js' does not exist, skipping all lookups in it.", "File name '/node_modules/docxtemplater/index.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/index.ts' does not exist.", "File '/node_modules/docxtemplater/index.tsx' does not exist.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.js' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "files": [ "/node_modules/typescript/lib/lib.d.ts", "/node_modules/docxtemplater/js/docxtemplater.d.ts" ], "visibleProblems": [ 0 ] }, "bundler": { "name": ".", "resolutionKind": "bundler", "resolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.d.ts", "isJson": false, "isTypeScript": true, "trace": [ "======== Resolving module 'docxtemplater' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", "File '/package.json' does not exist.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/docxtemplater/package.json'.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater.d.ts' does not exist.", "'package.json' does not have a 'typesVersions' field.", "'package.json' does not have a 'typings' field.", "'package.json' has 'types' field './js/docxtemplater.d.ts' that references '/node_modules/docxtemplater/js/docxtemplater.d.ts'.", "File '/node_modules/docxtemplater/js/docxtemplater.d.ts' exists - use it as a name resolution result.", "'package.json' does not have a 'peerDependencies' field.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.d.ts' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "implementationResolution": { "fileName": "/node_modules/docxtemplater/js/docxtemplater.js", "isJson": false, "isTypeScript": false, "trace": [ "======== Resolving module 'docxtemplater' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import'.", "File '/package.json' does not exist.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript, JavaScript, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript.", "Found 'package.json' at '/node_modules/docxtemplater/package.json'.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "'package.json' does not have a 'typesVersions' field.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/docxtemplater/js/docxtemplater.js', target file types: TypeScript.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.tsx' does not exist.", "Directory '/node_modules/docxtemplater/js/docxtemplater.js' does not exist, skipping all lookups in it.", "File '/node_modules/docxtemplater/index.ts' does not exist.", "File '/node_modules/docxtemplater/index.tsx' does not exist.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "File '/node_modules/docxtemplater.js' does not exist.", "File '/node_modules/docxtemplater.jsx' does not exist.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.js' exists - use it as a name resolution result.", "'package.json' does not have a 'peerDependencies' field.", "Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'docxtemplater' from 'node_modules' folder, target file types: TypeScript.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript.", "File '/node_modules/docxtemplater/package.json' exists according to earlier cached lookups.", "File '/node_modules/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater.tsx' does not exist.", "'package.json' has 'main' field 'js/docxtemplater.js' that references '/node_modules/docxtemplater/js/docxtemplater.js'.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/docxtemplater/js/docxtemplater.js', target file types: TypeScript.", "File name '/node_modules/docxtemplater/js/docxtemplater.js' has a '.js' extension - stripping it.", "File '/node_modules/docxtemplater/js/docxtemplater.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.tsx' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.ts' does not exist.", "File '/node_modules/docxtemplater/js/docxtemplater.js.tsx' does not exist.", "Directory '/node_modules/docxtemplater/js/docxtemplater.js' does not exist, skipping all lookups in it.", "File '/node_modules/docxtemplater/index.ts' does not exist.", "File '/node_modules/docxtemplater/index.tsx' does not exist.", "======== Module name 'docxtemplater' was successfully resolved to '/node_modules/docxtemplater/js/docxtemplater.js' with Package ID 'docxtemplater/js/[email protected]'. ========" ] }, "files": [ "/node_modules/typescript/lib/lib.d.ts", "/node_modules/docxtemplater/js/docxtemplater.d.ts" ], "visibleProblems": [] } }, "hasTypes": true, "isWildcard": false } }, "programInfo": { "node10": {}, "node16": { "moduleKinds": { "/node_modules/typescript/lib/lib.d.ts": { "detectedKind": 1, "detectedReason": "no:type", "reasonFileName": "/node_modules/typescript/lib/lib.d.ts" }, "/node_modules/docxtemplater/js/docxtemplater.d.ts": { "detectedKind": 1, "detectedReason": "no:type", "reasonFileName": "/node_modules/docxtemplater/package.json" }, "/node_modules/docxtemplater/js/docxtemplater.js": { "detectedKind": 1, "detectedReason": "no:type", "reasonFileName": "/node_modules/docxtemplater/package.json" } } }, "bundler": {} }, "problems": [ { "kind": "NamedExports", "implementationFileName": "/node_modules/docxtemplater/js/docxtemplater.js", "typesFileName": "/node_modules/docxtemplater/js/docxtemplater.d.ts", "isMissingAllNamed": false, "missing": [ "prototype", "prototype" ] } ] }, "problems": { "NamedExports": [ { "kind": "NamedExports", "implementationFileName": "/node_modules/docxtemplater/js/docxtemplater.js", "typesFileName": "/node_modules/docxtemplater/js/docxtemplater.d.ts", "isMissingAllNamed": false, "missing": [ "prototype", "prototype" ] } ] } }

(The full JSON is shown above, but here is the bit that I think is relevant :

        "missing": [
          "prototype",
          "prototype"
        ]

However to be honest, I don't see what is wrong with that.

You can reproduce this with following code :

git clone https://github.com/open-xml-templating/docxtemplater.git
cd docxtemplater
npm install
# No issue here
./node_modules/.bin/attw --pack

npm install --save @arethetypeswrong/[email protected]
# Now we have an issue !
./node_modules/.bin/attw --pack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant