Skip to content

NextJS App Router: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. #361

@bradleyf

Description

@bradleyf

I tried TimelordUK/todo-with-nextjs_msnodesqlv8, which works, but was written using the Nextjs PAGE router. When I convert it to using the APP router, I get this error.

./node_modules/msnodesqlv8/build/Release/sqlserverv8.node
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)

Do you have the proper webpack config for Next.config.ts for making this work?

I've tried it in another project and I get the message that it can only run as a server component, even though I'm using it that way.

Please advise!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions