Skip to content

./deploy error due to missing .js extensions #58

Description

@presocratics

I am following the How To: Set up wq with SQLite guide and running into errors when deploying the Django server with node enabled. When I run deploy.sh with node and GIS disabled, I am able to deploy. However, enabling node (keeping GIS disabled) results in the following error. Any thoughts on how to proceed?

(venv) [marty@peach withnode]$ ./deploy.sh 0.0.1
System check identified some issues:

WARNINGS:
rest.ContentType: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the RestConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
Application version: 0.0.1
Generating icons for web: 180, 192, 512

> [email protected] build /home/marty/dsa/withnode/app
> react-scripts build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve './App' in '/home/marty/wqtest/withnode/app/node_modules/@wq/material'
Did you mean 'App.js'?
BREAKING CHANGE: The request './App' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marty/.npm/_logs/2022-01-02T18_37_02_992Z-debug.log

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions