longrun / tech-blog-vue3-nuxt3 Goto Github PK
View Code? Open in Web Editor NEWTech blog starter-kit with Vue 3, Nuxt 3 and Contentful
License: MIT License
Tech blog starter-kit with Vue 3, Nuxt 3 and Contentful
License: MIT License
yarn dev -o
After about 5 seconds,
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
1: 0x100f45260 node::Abort() [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
ERROR [worker reload] [worker init]Package import specifier "#nitro" is not defined in package /Users/yuichi/Documents/github/longrun/nuxt3-app/node_modules/nuxt3/package.json imported from /Users/yuichi/Documents/github/longrun/nuxt3-app/node_modules/nuxt3/dist/core/runtime/nitro/paths.mjs
at new NodeError (node:internal/errors:371:5)
at throwImportNotDefined (node:internal/modules/esm/resolve:442:9)
at packageImportsResolve (node:internal/modules/esm/resolve:819:3)
at moduleResolve (node:internal/modules/esm/resolve:973:21)
at defaultResolve (node:internal/modules/esm/resolve:1080:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
at link (node:internal/modules/esm/module_job:78:36)
2: 0x100f453e8 node::errors::TryCatchScope::~TryCatchScope() [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
3: 0x101095c94 v8::V8::ToLocalEmpty() [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
4: 0x100f41518 node::fs::FSReqPromise<node::AliasedBufferBase<double, v8::Float64Array, void> >::Resolve(v8::Local<v8::Value>) [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
5: 0x100f49d04 node::fs::AfterStat(uv_fs_s*) [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
6: 0x1017b2aa4 uv__work_done [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
7: 0x1017b6240 uv__async_io [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
8: 0x1017c7fb8 uv__io_poll [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
9: 0x1017b66d0 uv_run [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
10: 0x100e92ccc node::SpinEventLoop(node::Environment*) [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
11: 0x100fd7768 node::worker::Worker::Run() [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
12: 0x100fda990 node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_3::__invoke(void*) [/Users/yuichi/.nodebrew/node/v16.14.2/bin/node]
13: 0x1bb3fa26c _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
14: 0x1bb3f508c thread_start [/usr/lib/system/libsystem_pthread.dylib]
So I'm avoiding it with build & start.
Do yarn generate
and after upload to Firebase Hosting, But can't access to sub pages.
Because generated files are attended on .html
extension.
Hi,
I'm not sure if I'm doing this right. Where do you locate the CONTENTFUL_CONTENT_KEY
and should the CONTENTFUL_ACCESS_TOKEN
be set to the Delivery API key
or the Preview Api Key
?
Thanks. I'm new to contentful.
Each time, I run npm run dev
and visit the loaded url, I get this error.
[Vue warn]: Unhandled error during execution of setup function
at <NavBar>
[nuxt] [request error] Cannot read properties of undefined (reading 'fields')
at ..../tech-blog-vue3-nuxt3/.nuxt/dist/server/server.mjs:9918:320
at Module.ssrRenderList (...\tech-blog-vue3-nuxt3\node_modules\@vue\server-renderer\dist\server-renderer.cjs.js:915:13)
... (truncated for brevity)
woops!
Hi @y-takebe , I found your repo looking for a solution for how to set up Nuxt3 + Contentful for development and production.
I'm struggling to make Contentful work for production specifically.
I see you're importing Contentful in a plugin like this:
import * as contentful from "contentful";
This works well when running npm run dev
, but when you run npm run build
, then npm run start
, this happens:
TypeError: contentful.createClient is not a function
I spent days trying to fix that and didn't find a solution yet.
Were you able to make it work by any chance?
Put on a static image include footer.
<img src="../static/images/logo-white-bg_transparent-465x195.png" style="width: 120px" class="mb-3" />
Do yarn generate
then image doesn't put on ~/.output/public/_nuxt/
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.