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

TypeError: A dynamic import callback was not specified. [can't format] #3098

Closed
asportnoy opened this issue Jul 31, 2023 · 2 comments
Closed
Labels
locked Please open a new issue and fill out the template instead of commenting.

Comments

@asportnoy
Copy link

asportnoy commented Jul 31, 2023

Summary

Just updated to v10.0.0 and got this error:

["INFO" - 10:00:09 AM] Extension Name: esbenp.prettier-vscode.
["INFO" - 10:00:09 AM] Extension Version: 10.0.0.
["ERROR" - 10:00:09 AM] Error registering extension
["ERROR" - 10:00:09 AM] A dynamic import callback was not specified.
TypeError: A dynamic import callback was not specified.
    at new NodeError (node:internal/errors:387:5)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:39:9)
    at Object.<anonymous> (/Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/node_modules/prettier/index.cjs:600:23)
    at Module.u._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:1271)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1243:10)
    at Module.load (node:internal/modules/cjs/loader:1058:32)
    at Module._load (node:internal/modules/cjs/loader:893:12)
    at Function.f._load (node:electron/js2c/asar_bundle:2:13330)
    at Function.l._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:28070)
    at Function.p._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:25404)
    at Function.u._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:91:22191)
    at Module.require (node:internal/modules/cjs/loader:1082:19)
    at g (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:647)
    at Object.3920 (/Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/dist/extension.js:1:70593)
    at r (/Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/dist/extension.js:1:81444)
    at Object.604 (/Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/dist/extension.js:1:3243)
    at r (/Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/dist/extension.js:1:81444)
    at /Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/dist/extension.js:1:81611
    at /Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/dist/extension.js:1:82614
    at Object.<anonymous> (/Users/albert/.vscode/extensions/esbenp.prettier-vscode-10.0.0/dist/extension.js:1:82635)
    at Module.u._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:1271)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1243:10)
    at Module.load (node:internal/modules/cjs/loader:1058:32)
    at Module._load (node:internal/modules/cjs/loader:893:12)
    at Function.f._load (node:electron/js2c/asar_bundle:2:13330)
    at Function.l._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:28070)
    at Function.p._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:25404)
    at Function.u._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:91:22191)
    at Module.require (node:internal/modules/cjs/loader:1082:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Function.i [as __$__nodeRequire] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:5:98)
    at i.rb (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:26583)
    at async Promise.all (index 0)

Short summary of what is going on or to provide context.

Github Repository to Reproduce Issue

Can't share

Steps To Reproduce:

Just loaded the extension in v10.0.0

Additional information

I see that this major version was just released 20 minutes ago so I'm assuming it's a bug that hasn't been discovered yet. I downgraded the extension to v9.19.0 and the issue is resolved.

VS Code Version:

1.80.2

Prettier Extension Version:

10.0.0 on macOS

Prettier Log Output

Included above

@ntotten
Copy link
Member

ntotten commented Jul 31, 2023

Duplicate of #3099

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the locked Please open a new issue and fill out the template instead of commenting. label Oct 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

2 participants