chronark / chronark.com Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://chronark.com
License: MIT License
Home Page: https://chronark.com
License: MIT License
Tried using npm and pnpm and neither would build. "pnpm install" works fine, but running "pnpm dev" throws the following error
- error Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Cannot find package 'C:\Users\x\Desktop\nextjs-portfolio\nextjs-portfolio-x\node_modules\.pnpm\@[email protected]_@[email protected]_@[email protected]_yd2af6audhnahnbsveya6jkwiy\node_modules\@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\x\Desktop\nextjs-portfolio\nextjs-portfolio-x\node_modules\.pnpm\@[email protected]_@[email protected]_@[email protected]_yd2af6audhnahnbsveya6jkwiy\node_modules\@effect-ts\otel-exporter-trace-otlp-grpc\_mjs\index.mjs
Did you mean to import @[email protected]_@[email protected]/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js?
at legacyMainResolve (node:internal/modules/esm/resolve:188:26)
at packageResolve (node:internal/modules/esm/resolve:767:14)
at moduleResolve (node:internal/modules/esm/resolve:829:20)
at defaultResolve (node:internal/modules/esm/resolve:1034:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:375:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:344:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:220:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
type: 'Error',
code: 'ERR_MODULE_NOT_FOUND'
}
ELIFECYCLE Command failed with exit code 1.
Seems related to the previous issue mentioned here: #17. However, that fix doesn't seem to work.
If related, the root cause of this problem can be found here: contentlayerdev/contentlayer#506
Could not get any of the fixes mentioned in that thread to work. So either a fix or temporary workaround would be great, thanks!
I update the env.local with details from cloudinary. (cloudname, apikey, and API secret). I am not sure what the folder is supposed to be.
Morever, I keep getting this error:
error Error: Must supply cloud_name
Hi there,
First of all, Love your design.
I'm new to web development and react, now I'm trying to develop a personal site using your template from vercel.
I found two issues:
Unhandled Runtime Error
Error: Hydration failed because the initial UI does not match what was rendered on the server.
Warning: Expected server HTML to contain a matching <article> in <a>.
See more info here: https://nextjs.org/docs/messages/react-hydration-error
Component Stack
article
a
LinkComponent
./node_modules/next/dist/client/link.js (100:23)
div
Card
./app/components/card.tsx (26:11)
error - Page changed from static to dynamic at runtime /projects/planetfall, reason: no-store fetch https://evolving-cougar-30891.upstash.io /projects/[slug]
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error
at globalThis.fetch (/Users/xuanliu/react/bio/MySite/node_modules/src/server/app-render.tsx:408:23)
at HttpClient.request (webpack-internal:///(sc_server)/./node_modules/@upstash/redis/esm/pkg/http.js:94:29)
at GetCommand.exec (webpack-internal:///(sc_server)/./node_modules/@upstash/redis/esm/pkg/commands/command.js:55:37)
at PostPage (webpack-internal:///(sc_server)/./app/projects/[slug]/page.tsx:39:19) {
page: '/projects/[slug]'
I tried to use
export const dynamic = "force-dynamic"
or
export const dynamic = 'force-dynamic'
export const dynamicParams = true
export const revalidate = false
export const fetchCache = 'auto'
export const runtime = 'nodejs'
export const preferredRegion = 'auto'
from https://beta.nextjs.org/docs/api-reference/segment-config
seems also not working.
I'm trying to understand what's wrong and this, but seems I need your help or, you could kindly look into it.
I basically changed nothing from your code, just yarn install and yarn dev, it will throw above error.
I also tried to downgrade to next.js 3.1.6, seems the same issue.
As discussed on Twitter add tags around client components.
See also https://nextjs.org/docs/messages/deopted-into-client-rendering
Hi there,
Notice another issue that,
the home page's main title has white fill color, but if the char is like p, or g, the fill is not complete after the animation:
I tried to tweak the height, but couldn't find which element controls the animation and the final height? it seems there are two lines joining the animation but I cannot see any 'line' element
I ran the project locally and the website works as expected but once i click on project i get this error
Error: Cannot read properties of undefined (reading 'slug')
<div className="flex flex-col w-full gap-8 mx-auto border-t border-gray-900/10 lg:mx-0 lg:border-t-0 ">
{[top2, top3].map((project) => (
<Card key={project.slug}>
<Article project={project} views={views[project.slug] ?? 0} />
</Card>
))}
</div>
how do i put analytics in my website? i tried replacing the code in analytics.tsx using the code snippet provided by beam analytics but i got an error in vercel
Planetfall.io and Unkey.dev have the same project description, might want to check that out ;)
I'm trying to run your project locally, but it won't run. I'm getting this error every time I run: npm run dev
> [email protected] dev
> next dev
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
- info Loaded env from C:\Users\X\Documents\Workshop\portfolio\.env
- error Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
file:///C:/Users/X/Documents/Workshop/portfolio/node_modules/@effect-ts/otel/_mjs/Processor/Simple/index.mjs:7
import { ConsoleSpanExporter, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'ConsoleSpanExporter' not found. The requested module '@opentelemetry/sdk-trace-base' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
const { ConsoleSpanExporter, SimpleSpanProcessor } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5) {
type: 'SyntaxError'
}
Fix open graph images in /app/layout.tsx to ensure the correct image is displayed when sharing a link to the site on social media. Ensure the twitter card is also updated to include image text.
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.