Skip to content

Having an issue with next.js #3

@shamoons

Description

@shamoons

Using "next": "10.0.6"

My next.config.js has:

/* eslint-disable */
const EnvkeyWebpackPlugin = require("envkey-webpack-plugin");

const envkeyConfig = new EnvkeyWebpackPlugin({
		permitted: [
		  "fatchance!"
		],
	  })

module.exports = {
	webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
		// Note: we provide webpack above so you should not `require` it
		// Perform customizations to webpack config

		config.plugins.push(envkeyConfig)
	
		// Important: return the modified config
		return config
	  },
};

But when I run, I get:

Module parse failed: parser.isAsiPosition is not a function
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
TypeError: parser.isAsiPosition is not a function
Could not find files for /app in .next/build-manifest.json
Could not find files for /app in .next/build-manifest.json
event - compiled successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions