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

nuxt3中提示md5 is not defined #27

Open
imziwen opened this issue Mar 22, 2023 · 5 comments
Open

nuxt3中提示md5 is not defined #27

imziwen opened this issue Mar 22, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@imziwen
Copy link

imziwen commented Mar 22, 2023

nuxt: ^3.3.1
node: v16.13.0
npm: 8.1.0
老哥,我这里有这个问题,看看解决一下呗

md5

@yue1123
Copy link
Owner

yue1123 commented Mar 23, 2023 via email

@yue1123 yue1123 added the block label Mar 29, 2023
@DanielSimgame
Copy link

DanielSimgame commented Apr 11, 2023

可以提供一下demo代码吗

https://codesandbox.io/p/sandbox/zen-taussig-g2kqxb?file=%2Fapp.vue&selection=%5B%7B%22endColumn%22%3A1%2C%22endLineNumber%22%3A7%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A7%7D%5D
看来是必然复现的
我的环境与楼主的类似
nuxt: ^3.3.1
node: 16.14.1
npm: 9.4.2

@yue1123
Copy link
Owner

yue1123 commented Apr 14, 2023

了解了,我尝试定位一下问题

@yue1123 yue1123 added bug Something isn't working and removed block labels May 3, 2023
@Mdxin
Copy link

Mdxin commented Oct 11, 2023

如果先全局引入SDK,则一切正常,而这会导致所有页面都引入SDK

# nuxt.config.ts

app: {
  head: {
    script: [
      {
        src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=!KEY!&callback=initializeBMap',
        tagPosition: 'bodyClose',
      },
    ],
  },
},

@Ricco8
Copy link

Ricco8 commented Nov 21, 2023

同nuxt3中出现该问题

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

No branches or pull requests

5 participants