Code Monkey home page Code Monkey logo

Comments (8)

nicitaacom avatar nicitaacom commented on June 20, 2024

image

Also its fake

image

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.

JesseKoldewijn avatar JesseKoldewijn commented on June 20, 2024

image

Also its fake

image

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.

JesseKoldewijn avatar JesseKoldewijn commented on June 20, 2024

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.

nicitaacom avatar nicitaacom commented on June 20, 2024

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.

JesseKoldewijn avatar JesseKoldewijn commented on June 20, 2024

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.

nicitaacom avatar nicitaacom commented on June 20, 2024

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

image

And how do you want me to write it?

from next.js.

JesseKoldewijn avatar JesseKoldewijn commented on June 20, 2024

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

image

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.

nicitaacom avatar nicitaacom commented on June 20, 2024

Solved

https://codesandbox.io/p/devbox/mvp-video-cannot-resolve-previewsrc-8kfn23?file=%2Fapp%2Fcomponents%2Fvideo%2FVideoOverlay.tsx

from next.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.