这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG] Cannot find name 'AnchorPositioningPolyfillOptions' in v0.3.0 #264

@Th3S4mur41

Description

@Th3S4mur41

Describe the bug
Running npx -p typescript tsc index.mjs --declaration --allowJs --emitDeclarationOnly end in the following error:

node_modules/@oddbird/css-anchor-positioning/dist/polyfill.d.ts(17,72): error TS2304: Cannot find name 'AnchorPositioningPolyfillOptions'.
tsc exited with code 2

Running the same command worked fine with v0.2.0

Additional context
The tsconfig.json

{
	"compilerOptions": {
		"target": "ES2020",
		"experimentalDecorators": true,
		"useDefineForClassFields": false,
		"module": "ESNext",
		"lib": ["ES2020", "DOM", "DOM.Iterable"],
		"skipLibCheck": true,

		/* Bundler mode */
		"moduleResolution": "bundler",
		"allowImportingTsExtensions": true,
		"resolveJsonModule": true,
		"isolatedModules": true,
		"noEmit": true,

		/* Linting */
		"strict": true,
		"noUnusedLocals": true,
		"noUnusedParameters": true,
		"noFallthroughCasesInSwitch": true,

		/* Project */
		"declaration": true,
		"declarationMap": true,
		"sourceMap": true,
		"inlineSources": true,
		"rootDir": "./src",
		"outDir": "./dist/",

		/* Custom */
		"noImplicitReturns": true,
		"noImplicitAny": true,
		"noImplicitThis": true,
		"allowSyntheticDefaultImports": true,
		"forceConsistentCasingInFileNames": true,
		"noImplicitOverride": true,
		"plugins": [
			{
				"name": "ts-lit-plugin",
				"strict": true
			}
		]
	},
	"include": ["src"]
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions