Comments (8)
Also its fake
It don't let you to insert YouTube video - please update docs
There should be
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/jfKfPfyJRdk?si=aUjXBlmyUhSPy27u"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowFullScreen></iframe>
from next.js.
Also its fake
It don't let you to insert YouTube video - please update docs
There should be
<iframe width="560" height="315" src="https://www.youtube.com/embed/jfKfPfyJRdk?si=aUjXBlmyUhSPy27u" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen></iframe>
This comment is unrelated to the provided issue.
from next.js.
And with regards to the import. You might want to take a look at the following docs. Since this isn't a Next.js issue in this case.
https://webpack.js.org/api/module-methods/#import-
from next.js.
I guess this code in VideoOverlay.tsx
cause issue (you may delete other stuff to make sure in that)
<div
className={`preview bg-[url('${previewSrc}')] bg-no-repeat bg-cover
absolute inset-0 z-[1]`}
onClick={() => {
playPauseVideo()
}}></div>
I updated codesandbox
Also I think its because of this code - any workaround?
from next.js.
I guess this code in
VideoOverlay.tsx
cause issue (you may delete other stuff to make sure in that)<div className={`preview bg-[url('${previewSrc}')] bg-no-repeat bg-cover absolute inset-0 z-[1]`} onClick={() => { playPauseVideo() }}></div>I updated codesandbox
Also I think its because of this code - any workaround?
The provided snippet isn't intended to work, refer to the TailwindCSS docs using the link below:
https://tailwindcss.com/docs/content-configuration#dynamic-class-names
from next.js.
I guess this code in
VideoOverlay.tsx
cause issue (you may delete other stuff to make sure in that)<div className={`preview bg-[url('${previewSrc}')] bg-no-repeat bg-cover absolute inset-0 z-[1]`} onClick={() => { playPauseVideo() }}></div>I updated codesandbox
Also I think its because of this code - any workaround?The provided snippet isn't intended to work, refer to the TailwindCSS docs using the link below: https://tailwindcss.com/docs/content-configuration#dynamic-class-names
I see this
And how do you want me to write it?
from next.js.
I guess this code in
VideoOverlay.tsx
cause issue (you may delete other stuff to make sure in that)className={`preview bg-[url('${previewSrc}')] bg-no-repeat bg-cover
absolute inset-0 z-[1]`}
onClick={() => {
playPauseVideo()
}}></div>
I updated codesandbox
Also I think its because of this code - any workaround?
The provided snippet isn't intended to work, refer to the TailwindCSS docs using the link below: https://tailwindcss.com/docs/content-configuration#dynamic-class-names
I see this
And how do you want me to write it?
You could use the styles prop for that instead of tailwind. In all cases, this is unrelated to Next.js specifically. So if you could close this issue, that would be great 👍
from next.js.
Solved
from next.js.
Related Issues (20)
- Multiple loading.tsx files causes extra transition when revalidating with server actions on 14.2.x+
- No official way to enable turbopack with custom server
- CSS order incorrect with the combination of server and client components HOT 3
- next.js typescript plugin autocomplete not working for `viewport`
- [Parallel and Intercepted Dynamic Routes] Will intercept normal routing HOT 2
- output export ssg generation for dynamic even with generateStaticParams id value is comming as %5Bslug%5D so page is not generated in build HOT 1
- Docs: Some Tags in "Layouts and Templates" page are not showing properly in the Firefox browser HOT 2
- Docs: Link documentation - Remove 'With URL Object' section HOT 3
- context
- Parallel route RSC does not unmount when navigating back to a `default.tsx` HOT 6
- Next build perf issue with long string `.concat` function
- The __debugSource attribute is missing from the React Fiber instance HOT 2
- Inconsistent behavior for usePathname between local and deployed (on Vercel)
- Docs: Pages Router Authentication links broken HOT 3
- route methods are executed during build
- default.tsx parallel routes are using the loading.tsx from the parent route instead of the one from the parallel route HOT 1
- Hot reload causes tab to hang and crash HOT 1
- Remove @babel/plugin-transform-classes HOT 1
- Remove @babel/plugin-transform-classes HOT 1
- Remove @babel/plugin-transform-classes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.