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

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

Closed
Th3S4mur41 opened this issue Oct 16, 2024 · 1 comment · Fixed by #265
Closed

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

Th3S4mur41 opened this issue Oct 16, 2024 · 1 comment · Fixed by #265
Assignees
Labels
bug Something isn't working

Comments

@Th3S4mur41
Copy link

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"]
}
@jgerigmeyer
Copy link
Member

@Th3S4mur41 Thanks! Fixed in v0.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants