Skip to content

Demonstration for showing that Next.js is incapable of importing files with a .js extension.

Notifications You must be signed in to change notification settings

n1ru4l/next-js-dot-js-import

Repository files navigation

Run yarn dev

Visit http://localhost:3000/

Get Module not found: Can't resolve './fooo.generated.js'

Module not found: Can't resolve './fooo.generated.js'
  4 | import styles from '../styles/Home.module.css'
  5 | 
> 6 | import * as a from "./fooo.generated.js"
  7 | 
  8 | const Home: NextPage = () => {
  9 |   return (

Next.js should support this...

About

Demonstration for showing that Next.js is incapable of importing files with a .js extension.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published