Closed Dean-Christian-Armada closed 2 months ago
Hello. @swaggy111 what for?
Looks like we got a hacker here @Dante-dan trying to inject viruses for penetration
sorry, I set a error main entry
Hello @Dante-dan the hacker already remove his comments. He is asking me to download something to get my issues fixed. As for the error, looks like we will wait for your changes. Your library looks great
Hello, I installed the latest version of 1.0.9 I do not experience the main entry anymore but the inline is still there. Please see attached photo
Below is part of my nuxt.config.ts
inlineScripts: {
disable: true,
// where inline scripts generate
// output: '.output/public/_nuxt',
// cdn url
// cdnURL: string,
},
modules: [
['@pinia/nuxt', { autoImports: ['defineStore', 'mapState', 'mapActions'] }],
'vue3-carousel-nuxt',
['@nuxtjs/eslint-module', { lintOnStart: false }],
['@nuxtjs/stylelint-module', { lintOnStart: false }],
'@vant/nuxt',
'@nuxtjs/device',
'nuxt-inline-scripts',
],
Is there something I missed on my configration?
yes, I'm fixing this problem. If the processing is completed, I will reply here.
I fix this issue at nuxt-inline-scripts >= 1.0.13
, you can try this package. And the dev
mode is not supported yet.
You can also refer to this link: https://codesandbox.io/p/devbox/nuxt-inline-script-z4vjnf. Hope I can help you @Dean-Christian-Armada
Hello,
Your library does not support SSR? I can see that it is workign nice when ssr: false
is configured in nuxt.config.ts.
I have some issues for support SSR, because some inline scripts will be generated by server runtime. If this scripts will be exported to file, So when will they be deleted? Do you have some good idea ?
So I will give priority to SPA and Prerender Mode
I will see what I can do
I will close this issue and open a new issue about SSR mode https://github.com/Dante-dan/nuxt-inlineScripts/issues/4
If you have any related questions, you can open this issue again 🚀
Current Behavior
I tried to do any
npm
commandslike
npm run build` but it returns an error. Please see error below:Expected Behavior
Just a smooth sailing and as the purpose of the library, remove the
window.__NUXT__
when doing View Page SourceSteps to Reproduce the Problem
pnpm add nuxt-inline-scripts -S
npm run build
Environment
Environment is only on localhost, I initially used
yarn
to libraries but when I didyarn add nuxt-inline-scripts
.. I encountered the error:Version: Attached is my package.json package.json
Platform: Mac
Node.js Version: v21.7.1